Skip to content

u/MaoItsMe

In this archive from Jan 2019 to Jan 2021

4
posts
115
comments
3
media
244
score

Global variables

How can I declare global variables in Godot? By global I mean variables that every script in the game can use like that: node 1 script: get_tree.variable node 2 script: get_tree.variable so I don't have to always work with get_parent and get_node methods.

5 points4 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.