Make endless character dies if it stops moving?

I’m trying to make my character dies if he stops running, that way wont die for just touching things hi dies if the obstacle make him stop.

there are many ways to do this, depending on how you are making your character move/run…

One possible approach:
you could use the Get Actor Velocity node (the get Vector Length)… then Branch when Vector Length is 0 go to:
your Character death State or animations
then Destroy your Character
restart your level