Hi,
I’m trying to get my Codea project working in XCode, but keep running into this little error:
[string “Fader = class()…”]:64: attempt to index global ‘tween’ (a nil value)
The Fader class is called in the init() function of the main class.
Could it be that Codea’s tween class is not yet available at that time?
Fader = class()
function Fader:init()
end
function Fader:fadeIn()
tween.stopAll()
tween(1.2, self.box, {alpha = 0})
end