• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

Scaling horizontally independent of rotation

Kahrabaa

Member
Hello.

I want
image_xscale to stretch an image horizontally and
image_yscale to stretch the image vertically
no matter what image angle is set to.

Can I do that without surfaces or drawing tricks?
Just through math, by linking the scale to the angle.

Thanks
 

Kahrabaa

Member
That is not what I meant.
image_xscale stretches horizontally if image angle is 0
but image_xscale stretches vertically if image angle is 90

I need xscale to stretch horizontally indepenent of image_angle
 

NightFrost

Member
The scale values always stretch along local axes, so obviously you can't do math tricks to scale the sprite like you want to. The only option is to work with a surface.
 
Top