Stun Function?

Is there a way to make my character be stunned for a few seconds when on impact with a porjectile?

2 Likes

Stop the player movement by setting the move sprite with speed to 0
After desired stun time move player again

1 Like

i normally do what @Luke says and i use timers extension, if you want to make the character incapable of doing anything you can also use a variable called stun and do: on sprite of kind projectile overlaps other sprite of kind player: set stun to 1, after action (number) Ms (miliseconds): set stun to 0.
i am using this for two games i’m doing.

3 Likes

There is a true/false bool (which could be easier to use and understand)

2 Likes

just realized that i can use true and false :sweat_smile: