Page 1 of 1

How to end?

PostPosted: Tue Jul 19, 2011 6:56 pm
by shafi
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,

Re: How to end?

PostPosted: Tue Jul 19, 2011 7:28 pm
by schnellboot
put this at the end
view.x=[next level];
view.y=[next level];

Re: How to end?

PostPosted: Wed Jul 20, 2011 12:13 am
by SuperSonic
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

Re: How to end?

PostPosted: Wed Jul 20, 2011 5:49 pm
by shafi
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... :)

Re: How to end?

PostPosted: Thu Jul 28, 2011 10:14 pm
by SuperSonic
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: