Step 1: Movement
Whether or not our character can move is irrelevant, but, we roll in style. The following events will move and animate the player while holding one (but not both) arrow keys. Note we are only moving the legs.- Repeat while "Left Arrow" is pressed
Repeat while "Right Arrow" is pressed
: Set X position to X( "
" )-2
: Set direction to
: Set direction to
: Change animation sequence to Walking
- Repeat while "Right Arrow" is pressed
Repeat while "Left Arrow" is pressed
: Set X position to X( "
" )+2
: Set direction to
: Set direction to
: Change animation sequence to Walking
- 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
: Set position at (0,0) from
3