OVERVIEW:


On every frame, the Wallaby object switches to the Ground Detector animation and then a fast loop is run. The Ground Detector animation is a single frame, a small red square located at the bottom of the object.
The fast loop moves the Wallaby (which is now a small red square) up or down 1 pixel whether or not it is overlapping an obstacle. The amount of times you run the fast loop is the amount of pixels the object will fall (or rise) per frame.
Once the loop is over, the Wallaby resumes the Walking sequence from the stored animation frame number.
Click the Flash window above to create a Wallaby object and hold Spacebar to view the Ground Detector. Press Shift to create a Wallaby without an embedded detector. See the difference!
ALTERABLE VALUES:

Alterable Value | Default | Description |
---|---|---|
FrameSave | 0 | The stored animation frame number. |
3