Settspr: Difference between revisions
Jump to navigation
Jump to search
New page: settspr[<tsprite ID>].member <number or gamevar> The members of the tsprite array are the sprites that are drawn on screen at a given time. ''The tsprite array should not be confused wit... |
No edit summary |
||
Line 1: | Line 1: | ||
settspr[<tsprite ID>].member <number or gamevar> | '''settspr'''[<tsprite ID>].member <number or gamevar> | ||
The members of the tsprite array are the sprites that are drawn on screen at a given time. ''The tsprite array should not be confused with the game world sprite array that is accessed with'' [[getactor]] and [[setactor]] ''commands.'' | The members of the tsprite array are the sprites that are drawn on screen at a given time. ''The tsprite array should not be confused with the game world sprite array that is accessed with'' [[getactor]] and [[setactor]] ''commands.'' |
Revision as of 12:27, 4 May 2009
settspr[<tsprite ID>].member <number or gamevar>
The members of the tsprite array are the sprites that are drawn on screen at a given time. The tsprite array should not be confused with the game world sprite array that is accessed with getactor and setactor commands.
Members of the tsprite array are counterparts of the actor array, and have similar names, except that member names in the tsprite array begin with 'tspr'.
The settspr and gettspr commands should be used in EVENT_ANIMATESPRITES. See the entry for that event for more details.
Example of usage:
settspr[THISACTOR].tsprcstat 0