I need to have some areas, and each of this area has a trigger. When the player collides with the trigger, he goes to a different area.
So lets suppose there is area A, B and C. The player is in area A. When he touches a trigger, he needs to be transported to area B. But also in area A there was another trigger that would transport him to area C.
Also, I think the areas should be entities, not worlds, because they share the same UI.
How would you structure this?
I’m asking because my ways of doing this always seem to be over complicated, and cause memory leaks. So I’m asking for some ideas.