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
69
S
21
G
7
Posts: 827
Reputation: 10,017

Post » Thu Jun 21, 2012 1:02 am

Another example: enemyHealthBars.capx
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,620

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
56
S
13
G
5
Posts: 101
Reputation: 7,497

Post » Thu Dec 12, 2013 7:59 am

same thing, but applied to a family should work
ImageImage
B
69
S
21
G
7
Posts: 827
Reputation: 10,017


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, Mayfly and 6 guests