I need a little help with my enemy health bar. I am spawning enemies and I'm also spawning new health bars to go over there head like in a tower defense. But 1 thing i for got was when i scale 1 enemies health bar it scales them all.
I know threes a way to do this lol. Im also using an instance variable called health that is worth 100.Each hit subtracks 10 points from it and when its 0 the enemy dies. But that healthbar doesn't know i want to assign it to individual enemies.
Thanks in advanced. Happy crafting.
Use containers? That way, when you pick an enemy, it'll pick the healthbar associated with it too.
If you put the enemy and the health bar in a Container, when you pick a monster, it'll automatically pick it's health bar too.
container? is that new to construct?
Im using C2
There was an extra html encoded space in the url I posted, and now it won't let me edit it.
Search the manual page for containers for all the info on them.
It may help.
Thank you guys :D
I ended up using the container. How long was that in Construct 2 lol. Must be recent.
I think you could use variables and UIDs too, containers seems like a simpler (nicer) solution!
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot guys, my problem has been solved!