I'm probably missing something really obvious, but I can't seem to make sprite_width or sprite_height to work. I'm using a 128x64 white box for the spr_menu_button with the origin at 64x32.
width = (spr_menu_button.sprite_width)/2; show_message(width); //Gives 0 height = (spr_menu_button.sprite_height)/2; show_message(height); //Gives 0
It should be giving 64 and 32 but I can't seem to work out why. I tried changing spr_ to obj_ but that threw an unknown variable error which is understandable. Also I know they're the right names as it has coloured spr_menu_button yellow and sprite_height/sprite_width red.
Thanks in advance.



Find content
Not Telling
