(Formerly known as GetObjectGraphic, which is now obsolete)
(Formerly known as SetObjectGraphic, which is now obsolete)
int Object.Graphic
Gets/sets the sprite slot number that the object is currently displayed as.
You can get the slot number from the Sprite Manager. If the object is
currently animating (from an Animate command) and you change the Graphic, then the
animation will be stopped.
Example:
object[2].Graphic = 100;
will change the object 2's image to the image stored in the sprite manager's slot 100.
See Also: Object.SetView
|