1 decade ago by Hazneliel
Hello, I have the following code in my update method:
And my jumping animation was declared like this:
When I excecute a jump the animation doesnt play, it looks only the last frame and the console outputs the following:
So why it goes from frame 45 to 48??? is an Impact´s bug???
/* JUMPING */ if ( this.vel.y < 0 ) { console.log('jumping'); this.currentAnim = this.anims.jump; console.log(this.currentAnim.tile); }
And my jumping animation was declared like this:
this.addAnim('jump', 0.3, [45,46,47,48], true);
When I excecute a jump the animation doesnt play, it looks only the last frame and the console outputs the following:
jumping 45 jumping 48 jumping 48 jumping 48 jumping 48
So why it goes from frame 45 to 48??? is an Impact´s bug???