How do I make a proper enemies family?

Get help using Construct 2

Post » Fri Mar 11, 2016 8:23 pm

All the enemies in the game I'm making are intended to have an HP instance variable (with varying values for each), but it seems each enemy having the value and the family for enemies having the value is mutually exclusive. Any workarounds?
B
8
S
1
Posts: 58
Reputation: 570

Post » Fri Mar 11, 2016 8:40 pm

It should be on the Family, not the enemy.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Fri Mar 11, 2016 8:50 pm

blackhornet wrote:It should be on the Family, not the enemy.

In that case, how would I still get it so that each enemy has its own initial HP?
B
8
S
1
Posts: 58
Reputation: 570

Post » Fri Mar 11, 2016 9:07 pm

The same way. Family instance variables are additions to each object.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Fri Mar 11, 2016 10:15 pm

blackhornet wrote:The same way. Family instance variables are additions to each object.

Changed things up and everything's hunky-dory again, thanks!
B
8
S
1
Posts: 58
Reputation: 570


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 14 guests