Members of the sprite, hittype, and spriteext structures: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Syntax:
<get/set>actor[<sprite id>].<member> <gamevar>
<get/set> - getactor to set the [[gamevar]] <gamevar> to the value of <member>. setactor to set the value of <member> to the [[gamevar]] <gamevar>.
<sprite id> is the reference number for a sprite. Use THISACTOR to set <sprite id> to the current [[actor]]'s reference number.
<member> is the name of the member of the struct you want to set or get.
<gamevar> is the [[gamevar]] to get or set the value of.
Here is the list of the members for the sprite, hittype and spriteext structs, commonly used for [[actor]]s:
{| cellpadding="0" cellspacing="0" border="0" width="100%"
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |


===sprite===
*[[ang]]
*[[ang]]
*[[clipdist]]
*[[clipdist]]
*[[cstat]]
*[[cstat (sprite)|cstat]]
*[[extra]]
*[[extra]]
*[[filler]]
*[[blend]]
*[[hitag]]
*[[hitag]]
*[[lotag]]
*[[lotag]]
Line 42: Line 29:
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |


===hittype/actor===
*[[htactorstayput]]
*[[htactorstayput]]
*[[htang]]
*[[htang]]
Line 52: Line 40:
*[[htextra]]
*[[htextra]]
*[[htfloorz]]
*[[htfloorz]]
*[[htfloorzoffset]]
*[[htwaterzoffset]]
*[[htg_t]]
*[[htg_t]]
*[[htlastvx]]
*[[htlastvx]]
Line 63: Line 53:
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |


===spriteext===
*[[angoff]]
*[[angoff]]
*[[mdflags]]
*[[mdflags]]
Line 72: Line 63:
*[[xpanning]]
*[[xpanning]]
*[[ypanning]]
*[[ypanning]]
*[[htflags]]
*[[alpha]]
|}
|}


[[Category:Structure member documentation]]
[[Category:Structure access]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]
__NOTOC__

Latest revision as of 13:21, 26 November 2021