Step 5: Ground Detection/Gravity

Next, we will make the Enemy fall when there is no ground beneath it. On every frame, a fast loop will run 4 times. On each loop, if the Enemy is not overlapping an obstacle, it will be moved down 1 pixel.
- Always
: Change animation sequence to Ground Detector
- Always
: Start loop "Gravity" 4 times
- On loop "Gravity"
is overlapping a backdrop
: Set Y position to Y( "
" )+1
8