Page 1 of 1

I need help!

PostPosted: Tue Jul 31, 2007 8:46 pm
by lilmuleman214
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.

PostPosted: Tue Jul 31, 2007 11:08 pm
by makslane
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");
}

PostPosted: Tue Jul 31, 2007 11:24 pm
by lilmuleman214
ok. Thank you!! I really appreciate it!

PostPosted: Wed Aug 01, 2007 12:21 am
by d-soldier
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.

PostPosted: Wed Aug 01, 2007 12:28 am
by lilmuleman214
ok i will

PostPosted: Wed Aug 01, 2007 1:44 am
by arcreamer
create actor health=100;