Step 4: Player Movement
Now, lets bring the game to life with a little movement:- Repeat while "Left Arrow" is pressed
- X position of
> 10
: Set X position to X( "
" )-2
- Repeat while "Right Arrow" is pressed
- X position of
< Frame Width-10
: Set X position to X( "
" )+2
7