Godot Real Time Day/Night Cycle 2D !

preview_player
Показать описание
Welcome Back.
In this video I take on the task of creating a 2d realtime Day/Night cycle in just 5 lines of code.
Hope you enjoy.

Timestamps:
0:00 Intro
0:12 Setup
0:46 How To
2:54 Coding
4:06 Example
4:18 Outro

Thanks for watching my video!
#gamedev #godot #Cycle
-
Scene from : Year of Linux
-
Рекомендации по теме
Комментарии
Автор

I wouldn’t expect this level of quality from someone who is relatively new to YouTube. Nice job.

mashpotatosauce
Автор

easy to understand and straight to the point, amazing video man, definitely earned a sub !! thank you so much :)
I'm using Godot 4.0.3 and the range_lerp() function didn't work, but Godot suggested to use remap() and it works just fine

mio-xhln
Автор

Love this!
I can't wait to try this out.

misterprickly
Автор

Thanks for the quick tuto. Didnt use the local OS time, but I use youre video as the base for my own day and night cycle!

yvesgingras
Автор

No bullshit, short and concise tutorials ! You're one of my new loves ;)

TheDaAims
Автор

Clear and informative, thanks, keep going ;)

mehdoush
Автор

Wow! This is amazing! So simple yet so flexible... Works like a charm!!

And for anybody wondering, you can easily do this with your own timescript instead of the OS.get_time.
Mine for example is simply:
var seconds_multiplier := 20 #Any value higher than 1 will speed up the clock
var seconds := 0
func _process(delta):
if not paused:
seconds += delta * seconds_multiplier

nintendoloverin
Автор

Cool tip, not sure it is something I would use in real time because then people who only have time to play in the evenings will only ever see the game as a black on navy silhouette, but interesting to see the approach & how you can obviously adjust to project needs.

Also, what was the background music?

jplay
Автор

Very excited to play with this concept

TheRealLosTresAmigos
Автор

Good tutorial bro, its easier than make day and night cycle using linear interpolation.

fdevstudio
Автор

Thank you so much!
Really helped me :D

Wischmopp
Автор

Please make a video on particle effects in 2d Godot

AppyTheApe
Автор

woah amazing work!!But I was wondering if you could also make a tutorial for not real time day night cycle

Mobvio
Автор

wow very good it will help me in my projects

leandroramirez
Автор

What video editing software do you use?

portonus
Автор

The time function code changed with current versions? Os get time doesn't work....

HiggsIIBoson
Автор

It seems like your lights are only applying to the CanvasModulate. How did you do that? For the life of me I can't figure out how to just make things brighter at night, without having a huge bright light on the background during daylight.
Also, thanks for these videos. You're doing awesome.

live-the-truth
Автор

Thanks for the tutorial! What music did you use? It has a strong Resident Evil saving room vibe :)

AshSZ
Автор

I love it, but what if I wanted to make the game time to only 24 mins in real world? like the time in terraria where 24 hours is only 24 mins real world time?

amimina
Автор

can we pls get simple platformer combat tutorial

fredericbogly