#I have a problem with variant "Nil"

1 messages · Page 1 of 1 (latest)

elder ibex
#

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?

dry trellis
#

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

elder ibex
dry trellis
#

Well don't try exactly that. Setting save to a label won't do anything 😂
But it does have the .text method

elder ibex
dry trellis
#

Just solve the error. Put pass at the top of the methods that are erroring.
What's the error you're getting?

#

Putting pass will basically set it to inactive