ScriptingWill-o-wisp.md 984 B

Summary

Will-o-Wisps, when given a name (and perhaps a path too), become scriptable, much like a platform or tilemap.

Methods

Method Explanation
goto_node(int node_no) Move willowisp to given node.
start_moving() Start following the path.
stop_moving() Stop following the path.
set_state(string state) Set the willowisp state to one of the below values.

States

  • stopped: willowisp doesn't move
  • idle: willowisp stops tracking Tux if he is distant enough
  • move_path: willowisp moves along the path (call goto_node)
  • move_path_track: willowisp moves along path but catches Tux when he is near
  • normal: “normal” mode starts tracking Tux when he is near enough
  • vanish: willowisp vanishes

Constants

None