Jump to content

Search the Community

Showing results for tags 'phaser animation'.

  • 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. I am making winning animation to play at the time when player wins. this.mainAnimationObj.play(50, false, false); This is playing the animation for only one time. I want to play this for 3-4 times, and after final animation, it should destroy. I am doing like below: private showWinnerAnimation() { this.mainAnimationObj.play(50, false, false); this.mainAnimationObj.onComplete.addOnce(this.onOneAnimationComplete, this); } private onOneAnimationComplete() { this.mainAnimationObj.play(50, false, false); this.mainAnimationObj.onComplete.addOnce(this.onTwoAnimationComplete, this); } private onTwoAnimationComplete() { this.mainAnimationObj.play(50, false, false); this.mainAnimationObj.onComplete.addOnce(this.onThreeAnimationComplete, this); } private onThreeAnimationComplete() { this.mainAnimationObj.play(50, false, true); } This plays animation for three times. But the problem is that for the next game, the animation does not play at all (I think it's because the animation is not being destroyed for the first time). Can you please help me.
×
×
  • Create New...