Ok, here’s the deal: I’m making a platformer with metroid style levels. Small (or large) rooms with doors that lead to other rooms. Originally, I was manually instantiating the doors and building the levels around them which worked fine for a while. The problem is that I want to attempt rooms with multiple entrances. I already have code that can create the doors and handle the hittests required to make the doors work. When each door is created it is given a unique depth and instance name. I have the x,y,h, and instance names stored in arrays.
What I can’t figure out is how to handle rooms with multiple entrances. How do I determine at which entrance to put the character in my dynamic code? Since each door is given a unique name every time the character passes though a door, and the same room may have different names for objects, using the instance names as a reference is out of the question. The only way i can think of is giving each room fixed names for everything, but if there is an easier way I would be glad to hear it.
. It seems just writing it out here helps me get a better handle on the problem at hand.