This is an example showing how to implement a “shock period” after the platformer character takes damage.
So, after taking damage, the character…
- …will not be controllable for half a second
- … will shake for half a second
- … will blink and be immune to further damage for 2 seconds
I hope this is useful, you can download the project here: shock_period