[solved] How to know the OS time using VISUAL SCRIPT ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nico_fr
:warning: Old Version Published before Godot 3 was released.

again using visual script, I’m wondering how I can get access to the OS time, for instance in order to build a clock.
thanks for your help.

:bust_in_silhouette: Reply From: Zylann

This is the first thing I ever do in VisualScript so there may be many other ways, but I could get a label to display the system time in seconds with this:


Basically I get the time by creating a Call, on a Singleton, and I can choose among all OS functions such as time.

Great, thank you for that,

would you know also how to acces mouse position, and joystick position…
(I’ve tried looking for it using similar method to the one you described above, but unsuccesfully).

(that was an other question of mine as per : [SOLVED] How to get joystick input using VISUAL SCRIPT - Archive - Godot Forum )


Nico_fr | 2018-01-25 01:21