wait (spriteNumber, lengthOfTime);
For use while creating an animation. Use this command to display a sprite for longer than one frame.
The function returns a structure containing both the spriteNumber and lengthOfTime data. This structure can then be used in the place of a number in the anim command. Internally, the structure is a 2-element stack.
# These two animations will look exactly the same var a = anim (1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7); var b = anim (1, 2, 3, wait (4, 9), 5, 6, 7);
The Multi-Purpose Stack / Array / Queue Type
SLUDGE and this SLUDGE documentation are copyright Hungry Software and contributors 2000-2012