Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The sequence above is simplified version of what Goth is doing in cam4 – the sequencer also needs to be able to handle function calls, because code is often running in between console messages (eg. to spawn droids, etc).

Sequence.define()

Defines a new sequence. Any number of sequences can be created, both during script initialisation or at any other time.

Code Block
themeRDark
languagejavascript
titleSyntax
linenumberstrue
Sequence.define( name, processor, steps );

Parameters

ParameterTypeMandatoryNotesAPI Version
nameString(tick)A unique name for the sequence, for example "Intro Sequence" 
processorFunction(tick)A function that will process steps in the sequence. See "Processor Function" for more info. 
stepsArray of Steps(tick)

An array containing the steps in the sequence.

Also the name of a British pop band from the '90s.

 

Anyway, that's the sort of thing Sequence API should handle. Currently working on a prototype...