Last.cel
From AGI Wiki
Revision as of 16:44, 9 April 2019 by Andrew Korson (talk | contribs)
The last.cel command stores the last cel number of a screen object's current loop in a variable.
Syntax
Remarks
Variable vB is set to the last cel number for a screen object's current loop. Because the first cel is numbered 0, the last cel will be the cel count - 1.
Possible Errors
AGI does not check that screen object number oA is a valid object. If it is not, the returned value will be meaningless.
Example
Code:
<syntaxhighlight lang="agi"> last.cel(o0, v51); [ v51 is set to last cel of ego's current loop </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 49 (0x31 hex) |