Page 1 of 1

Programming question

PostPosted: Tue Jul 20, 2004 6:16 pm
by VYTIS_KNIGHT
1. Does any one know how to make the actors move like the space invader game aliens?

2. How can I have it check to see if all aliens are dead then load next level?

Re: Programming question

PostPosted: Tue Jul 20, 2004 8:53 pm
by hobgoblin
1. Does any one know how to make the actors move like the space invader game aliens?
you have to create a path i think...i never really played space invaders
=D

2. How can I have it check to see if all aliens are dead then load next level?


to load next level, you have to creat another game and link them

in you SHIP you can put
"create actor" add action:script editor
then write...
int woompaloompa;
woompaloompa = 0;
if(woompaloompa>=X)
{
LoadGame("secondlevel.ged");
}

in your ENEMY now...

"destroy actor" add action: script editor
write...
woompaloompa = woompaloompa+1;

//X X is the number of enemies in the map

//secondlevel.gedsecondlevel is the name of your next map(you game will load another game)

PostPosted: Wed Jul 21, 2004 1:54 am
by Just4Fun
Another way that you could go about levels in a game(depending on how your game works) is to use activation regions.

For Example:
Create one activation region for Level 1 and one activation region for Level 2. When your player reaches a certain score on Level 1, jump to the activation region (screen location) of Level 2. When you move to a new activation region the actors in your previous region are destroyed.

Take a look at some of the demos and you will see what I mean. Breakout is a good example of what hobgoblin is talking about. It is also a very good all around demo to study.

Smiley Catch is pretty simplistic but it uses a lot of activation regions to represent difficulty levels. It also shows you the LoadGame() function. It doesn't do exactly what you are after, but it should be close enough to get you going....HTHs

PostPosted: Wed Jul 21, 2004 3:53 am
by jazz_e_bob
What Just4Fun said... :wink:

Re: Programming question

PostPosted: Wed Jul 21, 2004 1:26 pm
by VYTIS_KNIGHT
I like this forum more and more. Everyone is so helpful.

I will try all the advice and see if I can get it to work.

Thanks to all that offered advice.