Godot Version
4.4
Question
I’m trying to add a variable to my script using Array.append. However, when I try to print the array, it shows nothing the first time the function is run but after that it works. Can anyone help me?
Here is my code
if $"../..".coins>=100: var amount_to_take = 100 $"../..".coins-=amount_to_take create_investment(amount_to_take) var value_creation=Value invests.append(value_creation) print(invests)