Update: I’m trying to make a flexible script for travelling through different scenes. There are 4 rooms (A,B,C,D) and 3 doors. If someone more experienced in Python could look it over, I’d appreciate any suggestions. I can post a more detailed description of how the system is supposed to work if necessary.
You start out in RoomA, looking at the door to roomB. If you turn round and jump up, you will see the door to room C. Each door has a corresponding empty that sets the position of the player if you enter through it.
I can’t really tell what’s going on there. Cute though. You should be able to figure it out using the print statement. Using an ID, if it’s a number, is a problem because it doesn’t tell you much. Although, if there are hundreds of rooms, you might need to do something like that.
Got it working now. I made it so the setEntrance controls the new position of the player. I updated the file if anyone wants to look at it. I’ll probably make a better looking demo file when I get the chance.