I was running some tests because I'm wanting to make a day/night script I wrote compatible with UL script. I was tracking amount of time that lapsed along with the amount of the opacity changed during the course of the change.
It seems as if, for example, when I have the opacity set at 0 then run set_opacity(180, 2880) which is how I currently have my script set up for 1 hour on in-game time, the opacity change starts out slow. It gradually gets faster then eventually slows down and hits the 180 mark before 2880 frames have even passed. Am I know understanding the time argument correctly?
Just to test, I went into the demo and manually set to shadow opacity to 0. I then ran set_opacity(180, 43200) as 43200 frames is equal to 12 hours in my game time. According to this, the opacity should increase by 1 every 240 frames which is equal to 4 real life seconds. Instead it didn't change to 1 until around the 35 second mark, 2 about 15 seconds later, 3 about 10 seconds later, 4 about 9 seconds later, 5 about 8 seconds later, 6 about 7 seconds later and so on and so on. It was never consistent.
It seems as if, for example, when I have the opacity set at 0 then run set_opacity(180, 2880) which is how I currently have my script set up for 1 hour on in-game time, the opacity change starts out slow. It gradually gets faster then eventually slows down and hits the 180 mark before 2880 frames have even passed. Am I know understanding the time argument correctly?
Just to test, I went into the demo and manually set to shadow opacity to 0. I then ran set_opacity(180, 43200) as 43200 frames is equal to 12 hours in my game time. According to this, the opacity should increase by 1 every 240 frames which is equal to 4 real life seconds. Instead it didn't change to 1 until around the 35 second mark, 2 about 15 seconds later, 3 about 10 seconds later, 4 about 9 seconds later, 5 about 8 seconds later, 6 about 7 seconds later and so on and so on. It was never consistent.