I was trying to create a clicker game to start learning the engine and i need to do a save system.
I used a tutorial on youtube and adapting it to my code gives me this error,
for like an hour i was going crazy because there was no useful information in the official documentation and not even searching on reddit, can you help me?
#I have a problem with variant "Nil"
1 messages · Page 1 of 1 (latest)
save1 does not have a property text. What do you think save1 is supposed to be?
You would need to assign save1 as something:
save1: Label = %TextLabel
THEN, you could access the text property on the Label object. Otherwise, you have no object assigned to save1, etc
I'll try it
Thanks for the help!
Well don't try exactly that. Setting save to a label won't do anything 😂
But it does have the .text method
K
Small question:
If I want to run the game but I want that an exact script doesn't start because I'm still working on it, can I make that script "inactive" so it doesn't give me an error?