— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Moves the platform tile to the specified waypoint at its assigned movement speed.
move_platform(tile, waypoint_name, pause)
Argument | Description | Type | Required |
---|---|---|---|
tile | Platform tile that will be moved. | Entity | Yes |
waypoint_name | Name of the destination waypoint. | String | Yes |
pause | Whether or not script should be paused until the waypoint has been reached. Defaults to false. | Boolean | No |
If you are moving the player character, Lock/Unlock Player Movement must be called first to prevent the player from interfering with the scripted movement. See Platforms for more information.
move_platform(entity["wooden_platform"], "Across Pit")
Results: The platform tile with an ID of “wooden_platform” moves from its current location to the coordinate for the waypoint named “Across Pit”.
Use the Move Platform function to transport the player character on an elevator to the upper floor of a building or on a raft across a wide river.