I’ve got a code like this:
function request(url, listener, listenerError, timeout)
cocos2d.CCScheduler:sharedScheduler():scheduleScriptFunc("waitForResponse", 1.0 / 60, false)
but all I got in logs is:
name does not represent a Lua function
What’s going on with it?
I’ve looked an examples, at hello lua and I cannot see anything wrong with my code :/
the only difference I can see between my code and hello.lua from HelloLua project is the fact that my code is within a module.
But why would that matter?