Topic was automatically imported from the old Question2Answer platform.
Asked By
Bacon_Gb12
I’m trying to display a var as text in a different node and need the var from the player one
I’m a beginner, so I could easily be wrong, but at the top of the script, where it says "extends ‘X’ ", you can type in the script you want the variable from.
Slow’n’Steady | 2021-04-19 02:32
the extends x is what the script is attached to, so that wouldn’t work. Thanks though!
Bacon_Gb12 | 2021-04-19 02:35
I skipped the Extends Node but I think you can get it.
so i have a sprite called gun with its script and variable.i was putting that code to the Parent “Player” on the script player.gd but there came an error while everything was right