I’m using this to make my platformer game.
use the forum search feature
there are many threads on the topic
on update use codes:
if(isKeyDown(‘left’)||isKeyDown(‘a’)) {
this.speed -= 7;
this.gotoNextFrame();
this.scaleX=1;
}
if(isKeyDown(‘right’)||isKeyDown(‘d’)) {
this.speed += 7;
this.gotoNextFrame();
this.scaleX=-1;
}