independent health for enemies

Get help using Construct 2

Post » Sun Nov 17, 2013 9:24 pm

I there, I am stuck in a problem that I cant solve. Whenever my mouse overlap an enemy, it show is health, when enemy is hit the health bar decrase in function of the bullet type and enemy type. But when I overlap the enemy the hp bar goes to an other enemy (same sprite ID). the health bar is not independent to each enemy and the health variables is. for more explanation tell me.
sorry for my bad english

https://www.dropbox.com/s/nmexgemhwfzid6z/help%20please.jpg




@AnD4D If you want to help me

pixelcataklysm2013-11-17 21:37:06
B
8
S
1
Posts: 16
Reputation: 536

Post » Sun Nov 17, 2013 10:49 pm

Half of the problem solved!!! I use containers on my sprite but whenever an enemy die, they spawn on (0,0) (its raining robots!)
B
8
S
1
Posts: 16
Reputation: 536

Post » Sun Nov 17, 2013 11:43 pm

Ok problem solved,when objects are in a container they don't need to be spawned, just spawning the 1 object that the other is linked too will create the seconded object.
            -condition___________action
             robot on destroyed--wait 2 sec
                               --create obj:robot on layer x at (x,y)
the problem is here,I delete it--create obj:health bar on layer x at (x,y)

please refer to the jpg on the dropbox link at the first post pixelcataklysm2013-11-17 23:44:49
B
8
S
1
Posts: 16
Reputation: 536


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Nicolas951, tarek2 and 6 guests