Pretty simple script I've got, but I still can't understand GDScripts way of assinging values/strings etc. and it seems to have a problem every single time I try to do anything and says it's a null value and can't do anything with it.
extends TextureProgressBar
@onready var timer:float = 1.0
var main = load("res://Scripts/MoneyScript.gd").new()
###########################
func _ready():
pass
func _process(delta):
pass
###########################
func progressBarGo():
timer = await get_tree().create_timer(1.0).timeout
self.value = timer
func onAzureTimerDone():
pass
This is more of a help me understand rather than give me a solution because I just can't seem to get how this language works.
What does it mean can't call on a null value? That it can't do anything because the 'timer' variable is null? But it's assigned as a 'float' with the '@onready' value at the start. I've tried looking through a couple tutorials on youtube or forum posts but my pea brain isn't getting it. Any documentation of sorts you recommend to help me avoid basic issues like this would be nice thank you.