hundo.chester Posted March 14, 2018 Share Posted March 14, 2018 I have this scene, and whenever the zombie touches my debug object, it should turn velocity to 0, stop walking animation , and start attack animation, Not working (animation is stopped too): http://cypunkdb.net/t/phaser/tut0/nok.html Working (but not what I want): if I turn velocity to anything but 0, i will start moving again, but i don't want this... http://cypunkdb.net/t/phaser/tut0/ok.html is this a bug, or a feature? how could i stop the zombie movement, but continue the "attack" animation ? Link to comment Share on other sites More sharing options...
hundo.chester Posted March 14, 2018 Author Share Posted March 14, 2018 Nevermind.. it was a typo on this line: (in bold) this.physics.add.overlap(zombie, player, attack, false, this); Link to comment Share on other sites More sharing options...
Recommended Posts