This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Difference between revisions of "ScriptingWill-o-wisp"

From SuperTux
Jump to: navigation, search
(Summary: Wikilink to "ScriptingPath".)
(Added "Navbox Scripting reference" template.)
 
Line 29: Line 29:
 
None
 
None
  
 +
{{Navbox Scripting reference}}
 
[[Category:Scripting Reference]]
 
[[Category:Scripting Reference]]

Latest revision as of 12:28, 23 January 2010


Summary

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

Methods

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, can be:
  • stopped: willowisp doesn't move
  • 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

Scripting reference
Ambient sound · Camera · Candle · Display effect · Floating image · Globals · Level · Level time · Path · Platform · Player · Scripted object · Sector · Sound · Text · Thunderstorm · Tilemap · Will-o-wisp · Wind