Hi,
Hope someone can help
if I try to do a key press my animation stops until I let go of the key. (keys a and d) to move left and right - is there a way for the key press .onDown to be used once or an alterantive way to have my animation play when the key is held down, I’ve tried using the docs but can’t seem to find a solution
eg demo below
code snippet when pressing d
if (this.keyRight.isDown){
this.player.anims.play('walkProper');
this.player.flipX = false;
this.player.setVelocityX(150);
}
Thanks in advance
Eric