B
bdonohue
Guest
Hi,
I'm trying to reference the width/height of one sprite from within another object. I though I could use this but it's not working:
This returns a number that is definitely not the width of the sprite. What am I doing wrong?
Also, is it possible in GML to access properties of objects using standard dot notation like in other languages? Eg;
Thanks!
I'm trying to reference the width/height of one sprite from within another object. I though I could use this but it's not working:
myWidth = sprite_get_width(mySpriteName);
This returns a number that is definitely not the width of the sprite. What am I doing wrong?
Also, is it possible in GML to access properties of objects using standard dot notation like in other languages? Eg;
myWidth = mySpriteName.width
Thanks!