Health Bars?

hey, i was wondering if there was a practical way for making a health bar for an enemy. The conditions im doing this under is that there must be a separate health bar for every enemy, or for every instance of the same actor. I was thinking of using particles but it doesn't work well at all. anybody have an idea how to make unique health bars for each instance that is on scene/spawned onto scene?
Thanks,
Ryan
Thanks,
Ryan
Answers
Oops, I see the error of my ways. The trick is getting the self.lives value from the enemy actor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
change table(enemy index,1,self.index) to self.health
and on the health bar
change width to (table(enemy index,1,self.index))/max health*bar length
then we just make a ridiculous amount of columns so the table will be almost unlimited
when are writable tables scheduled to come out?
@tshirtbooth @mynameisace any thoughts on how to make this work without tables/if my table idea will work?
Thanks,
Ryan
How many enemies will the maximum be that you're having on screen at any one time?
Writeable tables won't be too long, so might be worth the wait.
Ace
im not sure how many enemies i will have yet because i have to make the enemies before i make the levels right? is the way you are talking about something you can just put a rule in the prototype and it will work for each individual instance? Also, this game is something i chose to do for a project in school and it is due in 5 weeks. Do you think writable tables will be out in time to finish the game... Pretty much all that is left is making the enemies and designing the level layouts.
Thanks for all the great tips all the time,
Ryan
any answers to my previous question?
thanks
@mynameisace
You can always go ahead and design the levels then add in your enemies at the end.
Well, all I know is that we (sous's) don't have the build yet and it's normally released a couple of weeks after we get it (although when we get it my NDA says I can't tell people that we have it) so it may be out in time, but also might not.
I'd design the levels and see if we have the build when you've completed it.
Ace