Hello,
I was stuck by a problem about Scheduler in Lua.
Cocos2d-x has provided a method for Lua users to use the scheduler, like this:
local entry = cc.Director:getInstance():getScheduler():scheduleScriptFunc(
function(dt)
cclog("hi")
end,
1, true -- this will be paused
)
The document says:
If paused is true, then it won't be called until it is resumed.
Now since it’s paused, I’d like to know how I can resume this entry. I tried self:pause(), but it seems to be not working.
Thanks!
PS: I know about Node::scheduleUpdateWithPriorityLua, but I couldn’t pause it either.
Can anyone help?