Hello, I hope you guys can give me some insight into how I can make this work...
I'm trying to make a day/night cycle by moving gradients up and down, depending on the time of day (which, in turn, is determined by the rotation of the sun and moon). So, for example, at 7 o'clock, the sun sprite is at105 degrees, the sun is coming up, and red gradient moves up to indicate dawn.
I figured, since red comes up twice (at dusk and dawn), it has to move according to a function. I plotted red's Y value against time of day, and got a function out of it from a graphing calculator. I rounded the values a bit and tested this graph, and it was close enough.
So in the event sheet I used
Every tick - Sprite2 - Set position to ((744.3*(sin(0.5*TimeOfDay+1)))+1271.1)
And yet it does not move at all...I used the layout debug build and saw that it does, in fact, move, but very small amounts. Any clues as to why that might be happening?
EDIT: Here's the capx:[attachment=0:20zzzuq5][/attachment:20zzzuq5]