This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

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?

Godot version v3.4.4
in Engine by (22 points)
reshown by

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.

2 Answers

0 votes
by (77 points)
0 votes
by (22 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.