Skip to content

Commit

Permalink
Update scripting reference (SuperTux/supertux@cf1a300)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux Bot committed May 1, 2024
1 parent 790f0e7 commit 51d2be0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ScriptingPlatform.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Methods

Method | Explanation
-------|-------
`goto_node(int node_no)` | Moves the platform until at given node, then stops.
`set_node(int node_no)` | Jumps instantly to the given node.
`goto_node(int node_idx)` | Moves the platform until at given node, then stops.
`set_node(int node_idx)` | Jumps instantly to the given node.
`start_moving()` | Starts moving the platform automatically.
`stop_moving()` | Stops moving the platform.
`get_action()` | Returns the current sprite action.
Expand Down
4 changes: 2 additions & 2 deletions ScriptingTileMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Methods

Method | Explanation
-------|-------
`goto_node(int node_no)` | Moves the tilemap along a path until at given node, then stops.
`set_node(int node_no)` | Jumps instantly to the given node.
`goto_node(int node_idx)` | Moves the tilemap along a path until at given node, then stops.
`set_node(int node_idx)` | Jumps instantly to the given node.
`start_moving()` | Starts moving the tilemap.
`stop_moving()` | Stops the tilemap at the next node.
`get_tile_id(int x, int y)` | Returns the ID of the tile at the given coordinates or 0 if out of bounds. The origin is at the top left.
Expand Down
2 changes: 1 addition & 1 deletion ScriptingWillOWisp.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Methods

Method | Explanation
-------|-------
`goto_node(int node_no)` | Moves the WillOWisp along a path until at given node, then stops.
`goto_node(int node_idx)` | Moves the WillOWisp along a path until at given node, then stops.
`set_state(string state)` | Sets the state of the WillOWisp. <br /><br /> `state` - One of the following: "stopped", "move_path" (moves along a path), "move_path_track" (moves along a path but catches Tux when he is near), "normal" (starts tracking Tux when he is near enough), "vanish".
`start_moving()` | Starts following a path.
`stop_moving()` | Stops following a path.
Expand Down

0 comments on commit 51d2be0

Please sign in to comment.