• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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