Platform Code
Add a new Event Sheet for the Falling Platform
Add a new Event Sheet for the Falling Platform
Add a new Group called Platform Fall
Add a new Group called Platform Fall
Code Explanation
Code Explanation
When the player collides with the Falling Platform
When the player collides with the Falling Platform
AND the Player is standing on the platform
AND the Player is standing on the platform
We shorten the period of the sine wave
We shorten the period of the sine wave
This makes the platform move up and down 4 times faster.
This makes the platform move up and down 4 times faster.
We wait half a second
We wait half a second
We play the OFF animation
We play the OFF animation
We make the platform movable
We make the platform movable
We stop the platform from moving up and down.
We stop the platform from moving up and down.