J
jef
Guest
Dear gamemaker users!
My situation I have made one object and two rooms. One room is called 'outside' and the other is called 'ínside'. I want object to set run=true when its in room 'outside'. And when object is in room 'ínside' it should set run=false.
I used the following line to find out in which room object is.
Now I need a line where the object chooses code, based on in which room the object is.
I tried the following and this did not work:
Please fix the code so it works as I want.
My situation I have made one object and two rooms. One room is called 'outside' and the other is called 'ínside'. I want object to set run=true when its in room 'outside'. And when object is in room 'ínside' it should set run=false.
I used the following line to find out in which room object is.
Code:
roomname = room_get_name(room)
I tried the following and this did not work:
Code:
if (roomname==outside) {run=true}
if (roomname==inside) {run=false}