How to Create a Slingshot Mechanic in GDevelop 5?

Hi everyone!

I want to create a slingshot-style mechanic in GDevelop 5 where:

:white_check_mark: The player touches and drags on the screen to aim.
:white_check_mark: Aiming dots appear to show the trajectory.
:white_check_mark: When the player releases, the projectile is launched in the opposite direction.

I’m looking for the best way to:

:one: Make the aiming dots appear correctly while dragging.
:two: Apply force to the projectile so it moves in the correct direction when released.

If anyone has suggestions or a working method, I’d really appreciate the help. Thanks!

need asap… i have game ham 20 hrs left

I haven’t done this before, but if I were to give it a go:

  1. touch and drag the projectile
  2. record the distance and angle from the origin (the slingshot) to a variable
  3. upon release, apply force (angle) (action) to the projectile
    not sure how I would implement the dots - probably just the Line action