Jump to content

Search the Community

Showing results for tags 'remove tween'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. var tween;function create() { var win = game.add.sprite(game.world.centerX,game.world.centerY,'win'); win.anchor.set(0.5); tween = game.add.tween(win.scale.set(0)); tween.to({x:1,y:1},800, Phaser.Easing.Elastic.Out,true,1800);}How can I remove the tween after it tween completed? I have tried this method,but it seems not working. tween.onComplete.add(function(){ tween.destroy();});
×
×
  • Create New...