furk3641 Posted August 22, 2020 Share Posted August 22, 2020 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 More sharing options...
moster Posted September 11, 2020 Share Posted September 11, 2020 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 More sharing options...
Recommended Posts