Animate.obj
From AGI Wiki
Revision as of 03:26, 13 December 2013 by Andrew Branscom (talk | contribs) (Created page with "The '''animate.obj''' command activates a screen object. == Syntax == : animate.obj(obj oA); == Remarks == If the object number exceeds the Screen obj...")
The animate.obj command activates a screen object.
Syntax
- animate.obj(obj oA);
Remarks
If the object number exceeds the max screen object count, AGI will generate an error.
Screen objects must be activated with the animate.obj command before it can be used in any other commands. Attempting to run commands on an uninitialize screen object will generate a runtime error.
If you call the animate.obj command on an object that is already activated, the command is ignored.
Example
Code:
<syntaxhighlight lang="agi"> //basic steps needed to create //and display a screen object animate.obj(o2); load.view(4); set.view(o2,4); position(o2,80,120); draw(o2); </syntaxhighlight>
Technical Information
Required interpreter version | Available in all AGI versions |
Bytecode value | 33 (0x21 hex) |