|
I dunno if you can use spritename.sprite_width with sprites that aren't currently being used by the active object.
I tried
draw_text(x,y-48,""+string(sprite_width)); draw_text(x,y-32,""+string(sprMarioSmall.sprite_width));
and it worked fine, both returned 16. But when I tried a sprite that wasn't being used by the object like
draw_text(x,y-48,""+string(sprite_width)); draw_text(x,y-32,""+string(spr8x8.sprite_width));
and it returned an error. The sprite of the object was sprMarioSmall and not spr8x8. Does that help? :S
--------------------
|