::I observed HollowKnight’s approach. When the character is injured, the character will bounce back and keep a distance from the monster. It seems that the layer collision with the monster will be temporarily released. My idea is to temporarily close the layer collision with the monster when the player is injured. layer collision. As for bouncing the player backwards, I find it a bit difficult to implement.
I think if a new behavior is introduced when the player is invincible, I am not sure whether it can solve the problem of bats. For example, I made a parkour map with some monsters in it, and then I jumped on top of the bat, although I would continue to be injured. But the bat will keep moving towards me and I will be able to ride on it to the finish line
My emails seem weird, I can’t get replies to them