cocos2d-x 3.2 lua 怎样加载plist文件

2025-04-05 23:58:46
推荐回答(1个)
回答1:

localcache=cc.AnimationCache:getInstance()cache:addAnimations("animations-2.plist")localanimation=cache:getAnimation("dance_1")animation:setDelayPerUnit(0.25)animation:setRestoreOriginalFrame(true)localaniamte=cc.