How to make mouse movement based minigames?

Godot Version

Godot 4.6.2 stable

Question

Hello everyone
I am currently trying to create as much minigames as i can in a month to get some experience in godot and wanted to recreate the minigames present in GTA Chinatown, some examples :

Those minigames mainly consisted of certain movements to make with your stylus on the nintendo DS. For example on the bottom right of the picture, you have to turn the screwdriver counter clockwise to start a car. I’d like to recreate those minigames but i’m struggling to imagine a way to do that. Do i use an Area2D and draw an invisible line following the mouse after a left click and check that say, 90% of the line points are in the Area2D ?

I am struggling to find a “good enough” way to do it, so I wanted to ask if anyone has a better idea on how to do it.
Thanks in advance !

1 Like