Obj.status.v
The obj.status.v command displays information about a screen object.
Syntax
obj.status.v(var vA);
Remarks
This command is normally used only by the game programmer while debugging a game. It displays a message box that includes basic information about screen object B where B is the value of vA, including the object's current position (x,y); it's size (xsize, ysize); current priority value (pri); and current step size (stepsize). The message is formatted as follows:
Object #: x: # xsize: # y: # ysize: # pri: # stepsize: #
This information can be useful to the game programmer in order to fine tune game play.
Possible Errors
AGI does not check that vA points to a valid screen object. If you execute this command on a screen object that has not been properly initialized, AGI will display random data from an undefined location in memory.
Example
<syntaxhighlight lang="agi"> v50 = 0; obj.status.v(v50); [ displays information about ego </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 133 (0x85 hex) |