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

while loop

  1. D

    loop confusion

    Hey guys, I have a object that speeds upon at certain intervals, and I am wanting cap it at a certain value. I figured a while or a do until loop wrapped around this code would work, but now when I run my game, the object hits the goal which should speed it up a bit and increase the score by...
  2. Dagoba

    "While" in "For" -loop

    Hello community! I am making a texas hold 'em engine and I am wondering, if "while" should be used in "for" -loop. This is used during the betting rounds, whenever players have their cards, they start to bet. I have noticed that "While" loop is pretty slow in game maker, and I can not use Sleep...
  3. J

    Legacy GM Help with infinite while loop [solved]

    Hi, I am trying to make a an object that will check for a collision, then stop checking for a collision for a second, and then start checking again. Currently, I have this while loop in a step event: while(alarm_get(0) <= 0) { if collision_line(x-96,y+15,x+96,y+15,all,false,true) {...
Top