Hello fellow devs,
I am developing a side-scrolling platformer game with different zones, for example cave, mine, etc. What I would like to do is to travel between these layouts by pressing a button while standing on a door sprite.
An example: On the 'level1' layout, there is a secret room, accessible through a hidden door. I get to the door, press a button while standing on its sprite. Now I'd like the game to put my player onto the 'level1_secret' layout to a specific position (to the other side of the door, which uses the same sprite) with all my stats saved. If I want, I can use this door again to get back to the 'level1' layout (in the specific position as well).
It would be easier if I could set a value to a door, so I can create events to a specific one and not for the object itself. Probably I'm missing something, but I can't really find a way to solve this issue.
Thanks in advance,
Peter