How to get width and height of an object, which is scaling?

H

heanfry

Guest
I have an Object with w,h = 1920,1080, but it is scaling, so the width and height is changing.

How can i check this?


Thank you guys!
 

CloseRange

Member
multiply the width and height by the scale factor. If you made a variable for this, us your variable. If you are using image xscale and yscale, use those:
Code:
new_width = 1920 *image_xscale;
new_height= 1080 *image_yscale;
 
N

Noam Shafir

Guest
You can get the width and height of the sprite with the scaling using the variables "sprite_width" and "sprite_height".
If you want to get the width and height of the sprite without the scaling you can use the functions "sprite_get_width(sprite)" and "sprite_get_height(sprite)".
 
Top