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

1 Like
4 Likes

That answered my questions, thanks

3 Likes