• 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!

GameMaker sprite offset?

Neptune

Member
For scaling & rotation purposes, I want to center the origin of a sprite, but only temporarily.

Is there anything wrong with doing this each step?
Code:
sprite_set_offset(spr,middle_x,middle_y);
//DO STUFF
sprite_set_offset(spr,original_x,original_y);
 

TheouAegis

Member
Why is perma-centered not an option for you?

As for any issues with that code, you'd have to speed test it, but it shouldn't he too strenuous.
 
Top