How to make doors for different places

Game Editor comments and discussion.

How to make doors for different places

Postby He360 » Thu Apr 10, 2008 1:46 am

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
Sometimes you don't need a goal in life.
He360
 
Posts: 22
Joined: Sun Apr 06, 2008 2:21 pm
Score: 0 Give a positive score

Re: How to make doors for different places

Postby Bee-Ant » Thu Apr 10, 2008 11:00 am

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...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: How to make doors for different places

Postby BlackJackOmega » Thu Apr 17, 2008 5:40 pm

I did something like that,
Collision=event enable;
Collision Finish=EV. Disable;
Keydown-Space-=Hero move to "where ever"
BlackJackOmega
 
Posts: 6
Joined: Thu Apr 17, 2008 1:58 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron