• 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 Limit variable to a certain interval

Hi,

Let's say I have this code

//Step
image_xscale += 0.1;


But I don't want to draw the exact image_xscale smoothly increasing. I only want it to update every 0.5 units.

//Draw
draw_sprite_ext(spr,0,x,y, image_xscale every 0.5. , 1, 0, c_white, 1)
 
Top