Programming question

Talk about making games.

Programming question

Postby VYTIS_KNIGHT » Tue Jul 20, 2004 6:16 pm

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?
VYTIS KNIGHT
VYTIS_KNIGHT
 
Posts: 29
Joined: Tue Jun 15, 2004 2:33 am
Score: 0 Give a positive score

Re: Programming question

Postby hobgoblin » Tue Jul 20, 2004 8:53 pm

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)
__________

i'm noob =P
__________
hobgoblin
 
Posts: 97
Joined: Sat Feb 21, 2004 5:10 pm
Location: BEHIND YOU!!!
Score: 0 Give a positive score

Postby Just4Fun » Wed Jul 21, 2004 1:54 am

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby jazz_e_bob » Wed Jul 21, 2004 3:53 am

What Just4Fun said... :wink:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Re: Programming question

Postby VYTIS_KNIGHT » Wed Jul 21, 2004 1:26 pm

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.
VYTIS KNIGHT
VYTIS_KNIGHT
 
Posts: 29
Joined: Tue Jun 15, 2004 2:33 am
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron