Code for the hero sprite
Getting started
To control the movement for the hero, you'll need two variables. These keep track of how fast he is moving left and right (xspeed) and up and down (yspeed).
You must create those variables. Do that in the orange 'Data' section of the blocks library. (You can call the variables anything you like really, just make sure you are consistent). |