How to end?

Talk about making games.

How to end?

Postby shafi » Tue Jul 19, 2011 6:56 pm

Hello guys...
m new to Game Editor ..
can u pls tell me how to end a level.
whats are the events to be generated for ending a level.

Thanks,
shafi
 
Posts: 2
Joined: Fri Jul 15, 2011 6:18 am
Score: 0 Give a positive score

Re: How to end?

Postby schnellboot » Tue Jul 19, 2011 7:28 pm

put this at the end
view.x=[next level];
view.y=[next level];
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: How to end?

Postby SuperSonic » Wed Jul 20, 2011 12:13 am

can u pls tell me how to end a level.
whats are the events to be generated for ending a level.


It is difficult for us to help you when you sum up your problem in two sentences.

Perhaps more elaboration?

For example, if you told us how you are supposed to beat the level end and how you want to transition to the next level, that will make it easier for us to help you Image
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: How to end?

Postby shafi » Wed Jul 20, 2011 5:49 pm

Thanks u guys for the reply.

now m elaborating my question.

The game design is like that , u had to collect eggs which is falling from the top.
So i had assume like this , the level will end if u successfully catch 40 eggs and a retry of mission failed will happen when u failed to catch 20 eggs.

hope m clear this time... :)
shafi
 
Posts: 2
Joined: Fri Jul 15, 2011 6:18 am
Score: 0 Give a positive score

Re: How to end?

Postby SuperSonic » Thu Jul 28, 2011 10:14 pm

Sorry for my late reply :oops:

I think I can help you now.

First, make an intiger in the global code like this:

int EggCount = 0;

This will tell the computer to make room for a variable called "EggCount" and set it's value to "0".

Next, figure out how you want to end the level. Sometimes in a puzzle game (which sounds something like what you're making) the level gfx change and the game becomes more difficult. So create a script in the global code like this:

void EndLevel1();
{
//put your script here
}

Finally, open the control panel for the view and click "add", "draw actor", "script editor".

if(EggCount >= 40)
{
EndLevel1();
}

Hope that was helpful :wink:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest