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