enemy life bars

Get help using Construct 2

Post » Wed Jun 20, 2012 10:07 pm

so I want to make a life bar follow the enemy characters of which there are multiple. How would I go about doing that? The pin behavior makes all of the life bars go the same enemy...
B
18
S
2
G
1
Posts: 21
Reputation: 1,060

Post » Thu Jun 21, 2012 12:12 am

there are multiple ways of doing something like this

this uses a way i just getting familiar with, by iid

example

or this by uid ( this i used most)

example

click left on character to substract hp
click right to destroy charactervtrix2012-06-21 00:29:17
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Jun 21, 2012 1:02 am

Another example: enemyHealthBars.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Thu Jun 21, 2012 3:52 am

Thank you very much!
B
18
S
2
G
1
Posts: 21
Reputation: 1,060

Post » Thu Dec 12, 2013 4:16 am

@vtrix and @ramones, how do we make the bar for multiple different enemies? in your examples, we only have multiple same enemies. Thanks
B
41
S
9
G
4
Posts: 100
Reputation: 6,211

Post » Thu Dec 12, 2013 7:59 am

same thing, but applied to a family should work
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests