Once the object number is validated, AGI enables it for updating (if not already enabled) and then validates the object's position using the shuffling method. The object is then added to the screen, where it will be visible and updated in subsequent interpreter cycles.
If the draw command is used on an object that is already visible AGI ignores the command.
If the screen object is not properly initialized when the draw command is executed, AGI will try to access invalid memory while trying to position and draw the object, resulting in unpredictable results, including possibly crashing AGI.
If a view has not been assigned to the object, AGI will raise trappable error #20.
animate.obj(o5); [ initialize first load.view(8); [ load a view for the object set.view(o5, 8); [ assign the view to the object position(o5, 72, 144); [ position the object on the screen] draw(o2); [ now draw it after all setup is done
|Required Interpreter Version:||Available in all AGI versions.|
|Byte-Code Value:||35 (0x23 hex)|