User Tools

Site Tools


move_platform

This is an old revision of the document!


Move Platform


Moves the platform tile to the specified waypoint at its assigned movement speed.

Signature:

move_platform(tile, waypoint_name)
ArgumentDescriptionTypeRequired
tilePlatform tile that will be moved.EntityYes
waypoint_nameName of the destination waypoint.StringYes
pauseasdBooleanNo

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. You can also use the more convenient Move Player function.

Example:

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 Character function to move the player character or NPCs around the map during scripted segments or cutscenes


Editor Node:

Visual Demo:

move_platform.1576514675.txt.gz · Last modified: 2019/12/16 08:44 by justin