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

SOLVED Move the room as an argument

U

uni00

Guest
Hello.
I want to place an advertisement when moving from room 2 to room 0, so I want to use the if statement as an argument to move from room 2 to room 0. How should I write?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
GML:
if room == room2
{
room_goto(room0);
}
That would check the current room and if it's room2 then it'll go to room0.
 
Top