hello everyone, im making a 2d puzzle game and i have a clock puzzle where the player places the clock hands and moves it with the mouse wheel to place it at the correct time.
i used chatgbt to help cus i have no idea how to work this in now the code works the clock hands do rotate but they dont rotate as normal clock hands would the hour hands follows the minute hand too closely and i think its not registering the correct time probably but for now i want to fix the clock hands movement.
this is my code for the rotation function
and ive attached a video to show the issue better
I have a node2d with an area2d and the clock arms and clock image as children but the problem might have been my writing, i tried the code you provided before posting here and it made the hour hand move simultaneously with the minute hand not independently. i changed the code yesterday to something else and managed to get it working but was presented with a new problem anyway i tried writing the code u provided again and it gave me the same problem it did before then i tried coping it and pasting it directly and surprise it worked! i most have been writing something wrong all along. thank you!