Horizontal Platform

Create a new event sheet for the Horizontal Platform

Create a Group called Move Platform

CODE EXPLANATION

IF the platform is overlapping the chain

(There is track to move on)

IF the platform is mirrored (Facing RIGHT)

Move the platform to the left 1 pixel at a time

IF the platform is not mirrored (Facing LEFT)

Move the platform to the right 1 pixel at a time

OTHERWISE:

Play the STOP animation.

Wait for 2 seconds

Play the ON animation.

IF the Platform has NO track to the RIGHT

Mirror the platform (Face LEFT)

Move Left by 3 pixels at a time

IF the Platform has NO track to the LEFT

UN-Mirror the platform (Face RIGHT)

Move Right by 3 pixels at a time