Would it be doable to set an autoloaded time like this?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Syl


Meanin a Node2D parentin a timer and an animationplayer, bein set as the root of my main scenes displayin time effects, mergin with all of them. A var day increase at the end of the timer, and the animationplayer keys the modulate effect (day/night) on all node necessitin it.

But with animationplayer endin at 1800sec, that would make 1/2 hour for a game day (no way to increase it?). Pretty short, but could i save my time from all my scenes along such a way?

:bust_in_silhouette: Reply From: njamster

So what exactly is your question here? Yes, you could do it that way. If it’s the best way, really depends on your project. Which you don’t talk about here in any detail.

The AnimationPlayer is limited to 2147483648, not 1800 seconds. What made you think so? You didn’t state, what you’re going for exactly, but assuming you would just shift the modulate-value of your scenes from day-value to night-value and back again, I don’t really see any need to have the AnimationPlayer run all the time. I would just animate the dawn and dusk and keep constant values for the rest of the time.

By the way: I don’t think 30 minutes would mark a “pretty short” in-game day. Quite the contrary actually. Stardew Valley has 12-minute-days for example.

Well, when settin the animation keys, i cannot extend the visual duration of the animation further than 1800 sec, albeit i could set its duration to great length of time yes.

Yes i’m thinkin about modulatin a day/night loop with darkenin modulation for the night. I was mostly askin about the autoload bein merged in most of my scene, and its possible side effects.

My project is here: Onyris, a bit outdated now.

Syl | 2020-02-11 10:31

What do you mean by “visual duration”? You can set the animation length by changing the number on the far right of the row containing the “+ Add Track”-Button. For high durations there will appear a scroll bar at the bottom - use it to reach the higher values.

Could you elaborate on what you mean by “autoload bein merged”?

njamster | 2020-02-11 11:05

By visual duration i mean the tracks display. I cannot go further than 2300 sec, stretchin at the max the animation box, even if i set the duration to 2147483648.

Cannot find the scroll bar at the bottom, or do you mean the magnifier?

By autoload bein merged, i was thinkin about havin my 2 global nodes settin the time( timer and animationplayer) merged at the start of all my visual scenes. Thus so that i can keys my modulation with the graphics nodes, but i don’t really know how to do that since i can merge it only with one scene… Is it clear?

Syl | 2020-02-11 11:43

No, not the magnifier. But it’s located right above that. Though as you set the duration to the maximum value, you might have overlooked it, given how small it is then. Try setting the duration to 3000 seconds instead and you should be able to see it clearly.

And no, sorry, I still don’t get the problem. But maybe someone else can help.

njamster | 2020-02-11 15:29

Great, found it. I’ll find a way, thxs for all! :slight_smile:

Syl | 2020-02-11 18:33