Flash once?

justinodunnjustinodunn Member, PRO Posts: 226

A flash (white actor, alpha from 0 to 1 after 0.1 seconds in timer) is triggered when main character collides with the enemy. However it is triggered as well when it hits the ground. How do I make it so that the flash would only appear once? because when it collides with the enemy the main character falls to the ground, so it would flash twice.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You could make a Boolean self attribute called hasflashed then add the condition:
    When self.hasflashed is false
    to your collide rule

    And add a change attribute to what ever rule makes it flash that changes self.hasflashed from false to true.

  • SocksSocks London, UK.Member Posts: 12,822

    Is it 'it' or is it the other "it' that triggers it ?

    :)

Sign In or Register to comment.