type = planar.GetSpriteType()
GetAttribute()
function to
query the following attributes of hardware sprites:
#ATTRWIDTH:
#ATTRHEIGHT:
#ATTRDEPTH:
#ATTRXPOS:
#ATTRYPOS:
#ATTRSTATE:
DMASPRITE_TYPE = planar.GetSpriteType() w = GetAttribute(DMASPRITE_TYPE, 1, #ATTRWIDTH) h = GetAttribute(DMASPRITE_TYPE, 1, #ATTRHEIGHT)The code above queries the width and height of hardware sprite 1.