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

ScriptingWind

From SuperTux
Revision as of 01:17, 30 June 2006 by AnMaster (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Summary

A Wind object that was given a name can be controlled by scripts.

Example

Example of a definition:

(wind
  (name "WIND1")
  (blowing #f)
  (speed-x 0)
  (speed-y -600)
  (acceleration 3)
  (width 32)
  (height 64)
  (x 783)
  (y 768)
)

The above object will be exposed under the name WIND1 in the scripting engine. Example usage:

WIND1.start();

Methods

start() start blowing
stop() stop blowing

Constants

None