Jump to content

How can i make animation continue playing after i release the pointer?


furk3641
 Share

Recommended Posts

I'm using buttons for a viritual gamepad in my Phaser 3 game. There is a button to attack, when pointer is down it plays the strike animation and i delayed the actual strike by about a second so it hits in the exact time our character swing his sword. Problem is, i must hold the button to make it play all of the animation. If i just click the button it doesn't play the animation, and hits the enemie about a second later. So how can i make the function keep playing animation until the end even if i release the button. My viritual gamepad works like WClarkson's controller video. 

Link to comment
Share on other sites

  • 3 weeks later...

You need to provide more information and possible some code snippets.  Simply apply the 

Character.anims.play(“attackAnm”,true)

Would make it play the animation , so you are doing something to either stop it, or something else unique 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...