Page 1 of 1

How to make doors for different places

PostPosted: Thu Apr 10, 2008 1:46 am
by He360
I have a question. I'm making a game that is similar to Super Mario brothers 2, where doors lead to different places. I'm just trying to figure out how to make each door pertain to different backgrounds for example:

Background 1 pertains to door 1. It goes somewhere and can only be seen on background 1
Background 2 pertains to door 2. It goes somewhere and can only be seen on background 2

And so on. Can anyone tell me how to fix it up in this way?

Thanks,
H

Re: How to make doors for different places

PostPosted: Thu Apr 10, 2008 11:00 am
by Bee-Ant
I think you must make diferent door for each place. For example, if player collide with door1
Code: Select all
player.x+=500;
player.y+=500;
view.x+=300;
view.y+=300;

When player collide with door2
Code: Select all
player.x+=2500;
player.y+=2500;
view.x+=2300;
view.y+=2300;

And so on...

Re: How to make doors for different places

PostPosted: Thu Apr 17, 2008 5:40 pm
by BlackJackOmega
I did something like that,
Collision=event enable;
Collision Finish=EV. Disable;
Keydown-Space-=Hero move to "where ever"