Hey guys,
I'm trying to make a clock, for this I have every 1000 milliseconds add 1 hour to the clock, so based on this I want to make the needle move smoothly so I needed to calculate how much (in degrees) the needle should move every 1 millisecond to rotate 360 degrees in 12000 milliseconds (12 seconds, which represents the 12 hours it takes for the needle to make a full turn).
To calculate it I did:
360 (degrees) / 12000 (milliseconds) = 0.03
Long version:
360 (degrees) / 12 (seconds, represents total hours) = 30 degrees per second
30 (degrees) / 1000 (milliseconds) = 0.03 degrees per millisecond
So the needle angle must subtract 0.03 every 1 millisecond from its current angle to make a full turn in 12000 milliseconds.
I think it's fine, but implementing it in Clickteam Fusion for some reason doesn't work.
This is the code:
// Clock
* Every 1000
Hours : Add 1 to Counter
* Every 1
Needle: Set angle to Angle( "Needle" ) - 0.3
What am I doing wrong?