Is there something wrong with my code,I wanna teleport my player to another layout by layout name.
My player isn't teleported.but if I use (go to next layout),it works.its suppose to work this way,I think.
Exitlayout mentioned here is string variable of the door,and its value is Layout 2. So when the door is collided,Layout 2 is written in the global string (Target_exit).
And so, it should move to the layout name(Target_exit)?