--定時器
local function ballSchedule()
print("Hello World")
end
--定時器
layerFarm:scheduleUpdateWithPriorityLua(ballSchedule, 1)
lua腳本,加定時器。
cocos2dx計時器
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
cocos2dx cjson解析
Amy_LLJ
2020-07-08 01:54:40
Nginx添加Lua模塊
原創
2021-01-30 10:34:25
Lua中的元方法__newindex詳解
kuangben2000
2020-07-08 05:30:34
Lua 實現 continue
kuangben2000
2020-07-08 05:30:34
Lua中數字for循環實例
kuangben2000
2020-07-08 05:30:34
lua的a and b or c等於js的a?b:c,但不等於js的a && b || c
kuangben2000
2020-07-08 05:30:34
Lua轉換爲int
kuangben2000
2020-07-08 05:30:34
vscode插件Luahelper
chqj_163
2020-07-08 03:02:46
Lua 學習_5 元表
Lua 學習 元表 原表 meta table setmetatable 可以設置元表 __index (讀取), __newindex
nicepainkiller
2020-07-07 14:49:47
cocos 項目 接入友盟 android 推送sdk
whitehack
2020-07-08 12:33:27
C++ 程序中的回調
Amy_LLJ
2020-07-08 01:54:50
cocos vscode+luaide 斷點調試配置
Amy_LLJ
2020-07-08 01:54:40
【深入瞭解cocos2d-x 3.x】一步一步通過ClippingNode實現一個功能完善的跑馬燈公告(1)
NxShow
2020-07-07 23:18:14
【深入瞭解cocos2d-x 3.x】UI樹(3)——UI樹的渲染機制
NxShow
2020-07-07 23:18:14