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/15 21:14] justinmove_platform [2021/04/21 18:37] (current) justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-move_platform(tile, waypoint_name)+move_platform(tile, waypoint_name, pause)
 </code> </code>
  
Line 12: Line 12:
 |tile|Platform tile that will be moved.|[[Entity]]|Yes| |tile|Platform tile that will be moved.|[[Entity]]|Yes|
 |waypoint_name|Name of the destination waypoint.|[[String]]|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|
  
 <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["wood_platform"], "Across Chasm")+move_platform(entity["wooden_platform"], "Across Pit");
 </code> </code>
-//Results:// The platform tile with an ID of "wood_platform" moves from its current location to the coordinate for the waypoint named "Across Chasm".+//Results:// The platform tile with an ID of "wooden_platform" moves from its current location to the coordinate for the waypoint named "Across Pit".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Move Character** function to move the player character or NPCs around the map during scripted segments or cutscenes+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.
 </WRAP> </WRAP>
  
Line 32: Line 33:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:move_character_node.png?nolink|}}+{{:wiki:move_platform_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:move_character_demo.gif?nolink|}}+{{:wiki:move_platform_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
move_platform.1576473249.txt.gz · Last modified: 2019/12/15 21:14 by justin