What happened to globals?

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

I swear at one point there was the function set_globals and get_globals

Were they replaced or am i just missing something here? Cause i cant seem to find them in the documentation anymore

:bust_in_silhouette: Reply From: The_Duskitty

Nevermind, my bad, Forgot it uses Globals.set and Globals.get

:bust_in_silhouette: Reply From: Akien

See http://docs.godotengine.org/en/latest/classes/class_globals.html

You probably misremember the function name, it should be something like:

Globals.set("is_a_cake", false)
if not Globals.get("is_a_cake"):
    print("The cake is a lie!)

Heh, 8 seconds too late :wink:

Bojidar Marinov | 2016-03-31 08:57