We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848912d commit 53ba2ecCopy full SHA for 53ba2ec
src/game-objects/hero.game-object.ts
@@ -129,7 +129,7 @@ export class Hero extends Sprite {
129
this._state.set({ action: "MOVING-RIGHT" });
130
} else if (this.isMovingLeft) {
131
this._state.set({ action: "MOVING-LEFT" });
132
- } else {
+ } else if (!this.scene.input.activePointer.isDown) {
133
this.body.setVelocityX(0);
134
}
135
0 commit comments