system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
The_Duskitty |
|
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
system
4
|
|
|
|
Reply From: |
The_Duskitty |
Nevermind, my bad, Forgot it uses Globals.set
and Globals.get
system
5
|
|
|
|
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
Bojidar Marinov | 2016-03-31 08:57