• 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 Looking for a "when" type statement.

O

OriginalGrim

Guest
Is there any kind of "when" type statement in gamemaker? I'm trying to do a draw event and I only want things to start drawing if v = (number) and then have v += 1 to move on to the next thing but when it goes up a digit the previous thing stops drawing because v != (number) anymore. So I need something that will trigger the code but not stop it if the statement no longer = true.
 

Mert

Member
I can't understand what you really want. I think what you want is:

Code:
while(v>0 && v<number) {
//Draw Stuff
}
If v is between 0 and let's say 100, then draw that.
 

woods

Member
something like this?

Code:
///create event
v = 0

///step event
v += 1

///draw event
if v >= 1
{
do stuff
}

edit: yeah what he said ;o)
 
O

OriginalGrim

Guest
something like this?

Code:
///create event
v = 0

///step event
v += 1

///draw event
if v >= 1
{
do stuff
}

edit: yeah what he said ;o)
This worked the text is staying now (although it's still crashing for a separate reason XD) I always forget about <and> for some reason. Thanks :)
 
Top