Page 1 of 1

Health problem

PostPosted: Wed Dec 23, 2009 8:12 pm
by Camper1995
Well, its me again. :(

I have a little problem with health. I have 4 enemies for example (all clones)

And I want that every enemy have 100 healts. (variable for that is enemyHP)

So i put in create actor:
Code: Select all
enemyHP+=100;
???

And when destroy actor or something like that...enemyHP... what?

I am a bit confused of that... :? because, I can destroy first enemy, but the others one have many HP, so I cant destroy them first!
__________________________________________________________________________________________________________________

Any ides how to do health for every enemy?

-Thanks, CAmPeR. :arrow: :|

Re: Health problem

PostPosted: Wed Dec 23, 2009 9:16 pm
by MrJolteon
Demo?

Re: Health problem

PostPosted: Wed Dec 23, 2009 9:48 pm
by Camper1995
Yeah, you can make it if you have time. ;)

Re: Health problem

PostPosted: Wed Dec 23, 2009 9:52 pm
by skydereign
Not sure if I understood the question... what exactly do you want the enemies to do? When making the variable enemyHP, making it an actor variable will give them their own health. This allows all actors to have their own, so on create actor, all you need is this.
Code: Select all
enemyHP=100;

And each clone has its own value, but it seems you want the destroy of one actor to effect the other clones? Is this the case?

Re: Health problem

PostPosted: Thu Dec 24, 2009 8:54 am
by MrJolteon
Camper1995 wrote:Yeah, you can make it if you have time. ;)

I meant you come with demo so that we can fix it through the demo.
K.jpg
K.jpg (14.77 KiB) Viewed 828 times

Re: Health problem

PostPosted: Sat Dec 26, 2009 8:03 pm
by Camper1995
Lol... :oops: well, I will post it after 31 december.. OK? xD

Re: Health problem

PostPosted: Sun Dec 27, 2009 3:29 pm
by MrJolteon
Ok.
(I made that post and that picture using Opera Mini on my cellphone)