How to move a sprite

I am working on my first game, but I don’t know how to move my character. It’s a 2D game. Can somebody help me with this?

Hi @gofkuh,

A good place to start are the Input tutorials, even though most of them are using a 3D scene the logic of how to listen for input and move an entity is the same:

https://developer.playcanvas.com/en/tutorials/?tags=input

Another good place to teach yourself how to build your first game is the Keepy Up tutorials series. Read it and try to build the game yourself, you will learn a ton of useful things that will later help you with your game:

https://developer.playcanvas.com/en/tutorials/keepyup-part-one/

2 Likes