OblivionSkull21
Member
Hello, I am trying to make the angle of a shadow move from right to left during the course of a whole day. Starting at 6AM, I want the shadow to begin moving from right to left gradually until it is completely left at 9PM (15 hours).
I use an alarm to calculate when an hour changes:
I am merely asking for some help with determining the calculation, as every combination I have tried has made the angle either go too fast or too slow. I basically want the shadow to rotate a complete 180 within that time frame, not too fast or slow but right on time.
Here's my angle variable, though the calculation is not correct right now:
I use an alarm to calculate when an hour changes:
Code:
move = room_width/(room_speed*7);
Here's my angle variable, though the calculation is not correct right now:
Code:
dir -= 180/15/move;