How To Use Real Life Time In Godot

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

Hello, I Am Trying To Make Like A Daily Spinning Wheel, So You Can Only Spin it Once A Day, But I Know You need To use Real Life Time So Players Cant Keep Respinning Since It Has A Wait Timer For The Next Day Anyone Know How Todo That ???

:bust_in_silhouette: Reply From: ramazan


Thanks Man Is There anyway Of Displaying it In A Label Like
if OS.getdatetime
IDK Im Not Good At GDScript

cochise123 | 2022-01-27 12:43

do this.

func _ready():

Look at the result. If your game has a timer. Subtract from your own time with real time and adjust according to the result.

ramazan | 2022-01-27 13:04

Ok Thanks Man :slight_smile:

cochise123 | 2022-01-27 13:31