User Tools

Site Tools


move_platform

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
move_platform [2019/12/16 10:29] justinmove_platform [2021/04/21 18:37] (current) justin
Line 15: Line 15:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-If you are moving the player character, [[set_player_movement_locked|Lock/Unlock Player Movement]] must be called first to prevent the player from interfering with the scripted movementYou can also use the more convenient [[Move Player]] function.+A tile can be configured as a platform by selecting it in the [[Map Editor]] and enabling the "Moving Platform" option from the [[Entity Properties]] panelSee [[Platforms]] for more information.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-move_platform(entity["wooden_platform"], "Across Pit")+move_platform(entity["wooden_platform"], "Across Pit");
 </code> </code>
 //Results:// The platform tile with an ID of "wooden_platform" moves from its current location to the coordinate for the waypoint named "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".
move_platform.1576520961.txt.gz · Last modified: 2019/12/16 10:29 by justin