Access vars from diferent nodes or a StaticBody2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mirca

i am trying to make a space survival kind of game. The main scene is a spaceship where you can choose to quicktravel to diferent planets and buy things from them. I want to add a fuel var that i can empty while traveling and fill while shopping on a planet

:bust_in_silhouette: Reply From: njamster

Take a look at Singletons.