basically i have a game where you dodge falling blocks by moving left and right, When you die a death animation plays.if you press a button while it is playing it will cancel the death and you can continue to play.
to try and fix this i made it so when a falling block hits you to 'start ignoring platform user input' and then you are shown a death screen that says 'press 'r' to re spawn' but it does nothing. you can still cancel your death by moving when the death animation is playing even though it says 'start ignoring platform user input' please help with this it is really confusing me.