How to make another actor lose health to only my animation?

So, I have this block, called a Fire block. Basically when I press spacebar it animates 3 different pictures of a simple fire, replacing the block, making it look like a fire, and it also plays a sound like a fire burning.

But I also want it to actually burn other actors. But only when I'm pressing spacebar. How can I do this?

Comments

  • deej011deej011 Member Posts: 159

    When overlap with fire actor and space bar pressed destroy actor

  • CaptFinnCaptFinn Member Posts: 1,828

    Fire Block -Boolean

    True if space bar is down
    False if space bar is not down

    Actor

    If fire block boolean is true on touch or overlape - play hurt animation or decrease health etc etc

    If fireblock boolean is false do nothing.

  • CabbageheadCabbagehead Member Posts: 10
    edited May 2015

    @FINNBOGG said:
    Fire Block -Boolean

    True if space bar is down
    False if space bar is not down

    Actor

    If fire block boolean is true on touch or overlape - play hurt animation or decrease health etc etc

    If fireblock boolean is false do nothing.

    This is what I was looking for, thanks alot :)

  • CaptFinnCaptFinn Member Posts: 1,828

    I was in your shoes.

Sign In or Register to comment.