Step 4: Embedded Detector

Alright, now time for the embedded detector. Place the following Always event ABOVE the event which starts the "Gravity" loop. This is because we want to switch to the detector BEFORE we find ground level.
Run the application and you will see the Wallaby, playing the Ground Detector animation, moving up and down the hill surface.


The final step is to resume the Jumping animation sequence and set the animation frame to the frame value stored in FrameSave. As follows...
And there you have it. The Wallaby now moves seamlessly across the hill, maintaining the transparent space below it in each animation frame.


Well done! You have completed the tutorial.
7