toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
Off-Topic
›
Miscellaneous
Health bar help please
kajuto
Member
Posts:
314
February 2012
edited February 2012
in
Miscellaneous
Hi there.! Thanks advance... I already have a health bar and everytime it touch a enemy the character -2 health bar for example how can I add +2 when collected from another actor instead? Please.. Help
Comments
MotherHoose
Member
Posts:
2,456
February 2012
Home > Actors > Tags
add tag: Enemy
add tag: Friend
click (All) in tagPane
drag the enemy to the Enemy tag
drag the friend to the Friend tag
on your actor:
1. Rule: when
Event: overlaps or collides with actor tag Enemy
--changeAttribute: healthBar To: healthBar-2
2. Rule: when
Event: overlaps or collides with actor tag Friend
--changeAttribute: healthBar To: healthBar+2
@}
;- MH
kajuto
Member
Posts:
314
February 2012
Jajaja hey MH how r u? Thanks as always .!! Any other way to do it ?
Sign In
or
Register
to comment.
Comments
add tag: Enemy
add tag: Friend
click (All) in tagPane
drag the enemy to the Enemy tag
drag the friend to the Friend tag
on your actor:
1. Rule: when
Event: overlaps or collides with actor tag Enemy
--changeAttribute: healthBar To: healthBar-2
2. Rule: when
Event: overlaps or collides with actor tag Friend
--changeAttribute: healthBar To: healthBar+2
@};- MH