It looks like you're new here. If you want to get involved, click one of these buttons!
scene = gideros.class(Sprite) function scene:init(t) timer = Timer.new(1000) timer:addEventListener(Event.TIMER, self.Job) timer:start() end function scene:Job() ... if something == 0 then self:NextFunction() -- this line gets error: attempt to call method 'NextFunction' (a nil value) end end function scene:NextFunction() end |
Comments
add self in your event listener registration call:
Likes: antix