Health bar help please

kajutokajuto Member Posts: 314
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

  • MotherHooseMotherHoose Member Posts: 2,456
    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
  • kajutokajuto Member Posts: 314
    Jajaja hey MH how r u? Thanks as always .!! Any other way to do it ?
Sign In or Register to comment.