Skip to content

u/MaoItsMe

In this archive from Jan 2019 to Jan 2021

4
posts
115
comments
3
media
244
score

Top posts

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

Top comments

I SOLVED IT.

The problem was that when I summoned a bullet, I seted the spawn point right after I added the child bullet to the root node. Now, I moved that part in the ready function of bullet and it works perfectly.

To all - sorry because I asked stupid questions and I didn't verify the whole code before questioning :-'(

7 points

He asked about which programming language he should start with in Godot, not which programming language he should pick up as a beginner. Anyway, I would still recommend python over c# for every beginner, regardless of what they want to make. After they learn the concepts of programming using an easy language, then C# would be fine, but let them start with something easy first.

6 points

Subreddits

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.