Warp Help

Posted by Rulze on March 27, 2007, 3:05 a.m.

My game is a platform game with a top down minimap kinda room. It starts off side-scrolling, then goes into the minimap mode. In minimap mode you can go into houses. As you go in it turns into the sidescrolling view again. Each house is a different room and the minimap thing is also a separate room. I use two different character objects (1 for minimap and 1 for side-scrolling) How do I warp between rooms? (In other words how do I get into a house and appear outside that house?) Does anyone have an example or something that can help.

Comments

Siert 18 years, 10 months ago

You make a block, when the character collides with it, change rooms. But do want them to appear right outside that house? One way you could do that is assign two global variables for the x and y values that you want the character to appear at. Then go to that room, when the character is created, assign the global variables to x and y of the character.