I have been playing around with various attributes and blocks to try and get this to work, but I can't get it to behave quite the way I want to.
In my game the player-character has the ability to temporarily avoid getting hit. I achieve by having the click of a mouse switch the player to a different animation that has a smaller hit box, to avoid enemies.
That works fine, but I have yet to figure how to make switch back after a certain amount of time.
ideally I want the player to only be able to "hide" for a few seconds after the input, and not be able to 'hide' again for a few additional seconds.
here's the best I could come up with so far:
it allows the animation to trigger, but subsequent presses of the mouse continue the cover animation, essentially allowing the player to be invincible indefinitely.
There is a "when created" block that makes this boolean false upon spawning as well.