Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
Tutorial showing a list of interval functions. tutorial, custom code, public functions, intervals

Public Functions:Interval Functions

  • MyGame.startInterval({ id: "asset", callback: "function name"})     Allows authors to run arbitrary code every turn, by defining a function as a property on an asset or on the game object. See Basic Scripting: Intervals for more info.
  • MyGame.stopInterval({id:'asset', callback:'function'})     Stop an interval that was previously started with startInterval(). See Basic Scripting: Intervals for more info.