Killing all = end game

Talk about making games.

Killing all = end game

Postby 98700 » Thu Aug 30, 2007 4:51 pm

I am making a game and i need to make it so that when i kill all of the guys (clones of one) that it ends the game. Is it possible? :shock:
Forum Me and Game A Gogo are administrating:
http://jacobtzgamz.freeforums.org/
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score

Re: Killing all = end game

Postby jimmynewguy » Thu Aug 30, 2007 9:24 pm

If you know how many clones there are, just have everytime u kill 1 a counter goes up and when it gets to a certine amount end the game i guess
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Killing all = end game

Postby cyber ruler » Fri Aug 31, 2007 12:14 am

This is just a different way of doing what jimmynewguy said, but I think it would be better. Make a textnumber called enemycount or sumthing. make a "create actor event, script editor" and enter [ enemycount.textNumber = (how many enemies there are)] put the textnumber somewhere on view and make the view it's parent. then make a "draw actor event, script editor" and enter this
Code: Select all
if(enemycount<=0)
{
    EndGame()
}


this way, the player knows how many enemies are left
All of my friends tell me programming is my thing. I go to tech school and I'm in I.T., yep, programming all day. My friends ask for help all of the time. But, they tell me my graphics suck... and I have to agree. O, well :/
cyber ruler
 
Posts: 52
Joined: Sat Apr 28, 2007 7:59 pm
Location: Je ne parle englais : /
Score: 0 Give a positive score

Re: Killing all = end game

Postby metal_pt » Fri Aug 31, 2007 9:03 am

If the enemies are all clones of the same actor you just have to do this:

Code: Select all
if(ActorCount("enemy")<=0)
{
    endgame();
}
]v[eta[_ - Using GE since June, 15 2007
Currently using v1.3.8 Registered
metal_pt
 
Posts: 117
Joined: Sat Jun 16, 2007 12:57 pm
Location: Sintra, Portugal
Score: 2 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron