Development Environment: Cocos2dx 3.17
Development Language: Lua
Timers are essential in game development. Below is a simple introduction to using timers in Cocos2dx-lua.
Example Code
1 | local scheduler = require("framework.scheduler") |
1 | scheduler.unscheduleGlobal(handler) -- Cancel the timer |