C
corwin22
Guest
I have a code that uses a variable to determine what room it will take you to but it just puts you back in the same room?
the room's name is rm_door1 and symbol = 1
when i draw "rm" is shows "rm_door1" so i am confused why it doesn't move me to the right room.
Code:
rm = "rm_door" + string(symbol)
if ((place_meeting(x,y+64,obj_player)) && keyboard_check(vk_space)) {
room_goto(rm)
}
when i draw "rm" is shows "rm_door1" so i am confused why it doesn't move me to the right room.