How to make a flipping platform

Last updated: March 9, 2025

Make sure to have claimed a plot, be in 'Create' mode, and press the 'Build' button on the left side of the screen until you see a toolbar appear on the right side of the screen.

Ever wanted to make a flipping platform that players can stand on when 'safe' but drops players when 'dangerous'?

  1. Let's make a two-sided platform with parts, one 'safe' side and one 'danger' side.
You can make this with a part and duplicate it, colouring one side red and the other blue.

'Safe' side

  1. Select all the parts of the object, and **merge it into one object **using the merge tool on the right toolbar.
Merging it instead of grouping it enables us to apply code to the object.

  1. Rotate this object so it lays horizontally using the rotate tool. Take note of the rotation position values of each side, as we will use this in our code. Ensure the 'safe' side is on top.
The values displayed in 'Rotation' represent the x, y, and z axis respectively.

x : 0 y : 180 z : 90 x : 0 y : 0 z : -90

  1. Select your object and open up Code Builder by pressing the </> button on the right toolbar.

  2. Once in Code Builder go to 'Events' on the left and grab at start, and then go to 'Control' and grab do forever.

This ensures the code runs as soon as the game plays and runs continuously.

  1. Grab wait -- seconds from 'Control', put it in between do forever and end.
This will indicate the delay before the block flips.

  1. Go to 'Motion' and grab tween rotation to x : - y : - z : - in -- seconds, place it below wait -- seconds. Input the position values of your 'danger' side in the x, y, and z.

  2. From 'Motion', grab set collidable True, and set it to False.

This will make the player fall through when they are on the 'danger' side.

  1. **Duplicate the 3 blocks inside ** do forever and end and place it just below your previous 3 blocks.

  2. Input the position values of your 'safe' side in the x, y, and z values of your __second __ tween rotation , and set your __second __ set collidable to True.

This flips the object back to the 'safe' side after 3 seconds.

11. Save your code, and when you press 'Play my game' you will see the block flipping over, with the player falling through when it's on the 'danger' side!

Was this article helpful?

Thanks for your feedback!