[SOLVED] Sprite disappears

every time I try to translate a sprite the sprite disspears

 var spot = this.entity.getPosition();      
            spot.x = 0;
            spot.y = 0;
            if (app.keyboard.isPressed(37)){
             this.entity.sprite.play('MoveLEFT');
                this.entity.setPosition(spot.x-5,0);

You are only passing the X and Y. Even with a sprite, setPosition would still expect 3 parameters (x, y, z).

1 Like

Thank you!! I’ve been trying to figure that out

With issues like this, there are usually errors in the browser developer console that help narrow down where it could be going wrong.