2D platform enemy throw like “mario's hammer bro"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Evitca Ariz

I want to make 2d platformer with enemy that throw stuff at player.
The enemy throw stuff up and fall at player location so the enemy can hit the player that hide behind wall.

I do know that enemy has the player location is needed, but how to throw up the wall and hit the player behind the wall?

You would need to program a parabola. That means finding the vertex and calculating the path. Might be worth looking up some tutorials on programming a parabola if you want to learn how trace the path for the hammer.

Gluon | 2022-12-22 09:40

:bust_in_silhouette: Reply From: sporx13

Maybe that tutorial can help? Draw trajectory :: Godot 3 Recipes

:bust_in_silhouette: Reply From: Evitca Ariz