Vertical Platform
Create a new event sheet for the Vertical Platform
Create a new event sheet for the Vertical Platform
Create a Group for moving the platform UP
Create a Group for moving the platform UP
CODE EXPLANATION
CODE EXPLANATION
The system will repeat this code
The system will repeat this code
for EVERY Vertical Platform in the game:
for EVERY Vertical Platform in the game:
If the Platform is overlapping the chain
If the Platform is overlapping the chain
AND the Player is Just above the platform
AND the Player is Just above the platform
AND the Player is on the floor (not jumping)
AND the Player is on the floor (not jumping)
The platform is raised upwards by 1 pixel at a time.
The platform is raised upwards by 1 pixel at a time.
The platforms ON animation is played.
The platforms ON animation is played.
If the Platform is NO LONGER overlapping the chain above it
If the Platform is NO LONGER overlapping the chain above it
(There is no more vertical track)
(There is no more vertical track)
The platforms STOP animation is played
The platforms STOP animation is played
Create a group for moving the platform DOWN
Create a group for moving the platform DOWN
CODE EXPLANATION
CODE EXPLANATION
The system will repeat this code
The system will repeat this code
for EVERY Vertical Platform in the game:
for EVERY Vertical Platform in the game:
If the Platform is overlapping the chain BELOW IT
If the Platform is overlapping the chain BELOW IT
(There is track below it)
(There is track below it)
IF the Player is NO LONGER just above the platform
IF the Player is NO LONGER just above the platform
The platform is lowered by 1 pixel at a time.
The platform is lowered by 1 pixel at a time.
The platforms ON animation is played.
The platforms ON animation is played.
IF the Platform is NOT overlapping the chain BELOW it
IF the Platform is NOT overlapping the chain BELOW it
(There is NO MORE track below)
(There is NO MORE track below)
The platforms STOP animation is played.
The platforms STOP animation is played.