I need help!

Talk about making games.

I need help!

Postby lilmuleman214 » Tue Jul 31, 2007 8:46 pm

Ok, so when ever I start my game my main character just disapears. I think it has something to do with my health bar, because in the health bar, as a event there is a Draw actor with this code.
Code: Select all
DestroyActor("player");
I think that is what is making my main character die right away. how do I make it so after all the health in the health bar is gone, my main character dies.
Life is to good to waste
Go To http://www.Game-junkiez.us
to play/download my games.
User avatar
lilmuleman214
 
Posts: 102
Joined: Wed Jul 25, 2007 6:42 pm
Score: 5 Give a positive score

Postby makslane » Tue Jul 31, 2007 11:08 pm

You need to measure the health. For example, if you use a variable health, you can make the test:

Code: Select all
if(health == 0)
{
   DestroyActor("player");
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby lilmuleman214 » Tue Jul 31, 2007 11:24 pm

ok. Thank you!! I really appreciate it!
Life is to good to waste
Go To http://www.Game-junkiez.us
to play/download my games.
User avatar
lilmuleman214
 
Posts: 102
Joined: Wed Jul 25, 2007 6:42 pm
Score: 5 Give a positive score

Postby d-soldier » Wed Aug 01, 2007 12:21 am

And be sure that the player actor's create-actor event gives him some health, or it will start at 0, and he'll disappear too... Also lilmuleman214, be sure to name your subject posts something relative to what your post is about, and avoid the "HELP ME!" cliches so that people using the search function can find things relative to their query by scanning post titles.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby lilmuleman214 » Wed Aug 01, 2007 12:28 am

ok i will
Life is to good to waste
Go To http://www.Game-junkiez.us
to play/download my games.
User avatar
lilmuleman214
 
Posts: 102
Joined: Wed Jul 25, 2007 6:42 pm
Score: 5 Give a positive score

Postby arcreamer » Wed Aug 01, 2007 1:44 am

create actor health=100;
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron