dying in multiple hits

Talk about making games.

dying in multiple hits

Postby elite » Fri Oct 05, 2007 12:02 pm

Ok, im making a game about Halo and the grunts die 1 hit. I want my arbiter to die infive hits and the brutes to die in 3. How do i do this? :?: :|
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: dying in multiple hits

Postby Kalladdolf » Fri Oct 05, 2007 12:24 pm

make a variable called health. Make sure it's an actor variable.
Create actor -> Script editor
Code: Select all
heatlh = 3;

Collision -> get hit ->
Code: Select all
health-=1;
if(health==0)
{//die action}
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: dying in multiple hits

Postby Bee-Ant » Fri Oct 05, 2007 1:35 pm

...................... :D :D :D :D
Hey Kall, if you give a code, please more specific...moreover for new user. It just will make them confused...for example

Enemy actor, on Collision event with player bullet :
Code: Select all
EnemyHealth--;
if(EnemyHealth==0)
{
    ChangeAnimation("EventActor", "Die", FORWARD);
    Score.textNumber=Score.textNumber+10; //etc...
}

:D :D :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: dying in multiple hits

Postby elite » Fri Oct 05, 2007 1:45 pm

collision, "get hit"?
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: dying in multiple hits

Postby Bee-Ant » Fri Oct 05, 2007 1:47 pm

elite wrote:collision, "get hit"?

He means :
EnemyActor..CollisionEvent>PlayerBullet>NoRepeat>ScriptEditor>(See my code)
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: dying in multiple hits

Postby Bee-Ant » Fri Oct 05, 2007 1:49 pm

Btw I have posted a demo about your jumping problem...check your Jumping topic in General :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: dying in multiple hits

Postby Kalladdolf » Fri Oct 05, 2007 2:44 pm

ooops, sorry! :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: dying in multiple hits

Postby Bee-Ant » Fri Oct 05, 2007 3:13 pm

==Kalladdolf== wrote:ooops, sorry! :D

Be careful with new user... :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: dying in multiple hits

Postby Kalladdolf » Fri Oct 05, 2007 3:24 pm

I'm a new one, too! :o :o

:lol:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: dying in multiple hits

Postby Bee-Ant » Fri Oct 05, 2007 3:32 pm

I mean new user who isn't well known with codes... :D or whatever you call it.. :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: dying in multiple hits

Postby Kalladdolf » Fri Oct 05, 2007 3:58 pm

I know, just talkin' u nuts :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron