Closed guilhermehto closed 5 years ago
I fixed most of the issues you pointed, left some comments on some though. I won't push as it's not done and I'll wait for your input on what to do next. One approach would be to remove the StaticBody
from our shield and let is_shield_facing()
handle everything.
Answered your comments, you can go ahead :)
If you have the shield facing away from the enemy or you're in contact with the enemy and you remove the shield, you won't take any damage.
Done :)
The enemy can damage the player by touching it (like mario) or by calling a function in the
Player
for enemies that don't rely on collisions to damage him.There are two ways the blocking works: