Step 1: Movement
A programmer must have total control over every element in their game, especially movement. The default platform movement is sloppy and full of bugs. Our first step, is to build a basic custom movement engine.- Repeat while "Left Arrow" is pressed
Repeat while "Right Arrow" is pressed
: Change animation sequence to Walking
: Set X position to X( "
" )-2
: Set direction to
- Repeat while "Right Arrow" is pressed
Repeat while "Left Arrow" is pressed
: Change animation sequence to Walking
: Set X position to X( "
" )+2
: Set direction to
- Repeat while "Left Arrow" is pressed
- Repeat while "Right Arrow" is pressed
- OR
Repeat while "Left Arrow" is pressed
Repeat while "Right Arrow" is pressed
: Change animation sequence to Stopped
- Always
: Center display at 0,0 from
: Hide Windows mouse pointer
3