Variables - Self vs. Local (SOLVED)

Hello, this is a newbie question but, I’ve looked at some tutorials which declares variables like this: (local) variableName = value but in the defold official top down game tutorial, they used self.variableName = value
whats the difference? if there’s no difference, which way is better?
thx a lot

3 Likes

That answered my questions, thanks

2 Likes