Click on the example then use the arrow keys or WASD to move the player character around the screen.
Fully understand the concept by watching the tutorial in full screen at high res.
Once you have watched the video, you can refer to the code below to help you make your own that fits your game. Make sure you type it yourself to help you learn.
Getting your player sprite moving around the screen will look something like this in your 'main' file.
To keep the player on the screen, you can add the following code to the 'update function' after the player movement.
The 'clamp' function function is not built into microStudio, you will have to go here and click import source file .
Remember, if you set your game to the usual 16:9 screen ratio, your co-ordinates will look like this.