Platform Code

Add a new Event Sheet for the Falling Platform

Add a new Group called Platform Fall

Code Explanation

When the player collides with the Falling Platform

AND the Player is standing on the platform

We shorten the period of the sine wave

This makes the platform move up and down 4 times faster.

We wait half a second

We play the OFF animation

We make the platform movable

We stop the platform from moving up and down.