【发布时间】:2020-10-25 16:06:48
【问题描述】:
首先我将精灵从 a 移动到 b。当它到达 b 时,我需要调用一个函数来处理 sprite,即淡入淡出、更改图像等。我目前正在使用“序列”进行操作。
var seq_action = cc.Sequence.create(move_action, this.check_basket_under());
但它给了我这个错误 -
CCActionInterval.js:507 Uncaught TypeError: Cannot read property '_timesForRepeat' of undefined
at Function.cc.sequence [as create] (CCActionInterval.js:507)
at Class.sprite_create (app.js:110)
at Class.trigger (CCScheduler.js:261)
at Class.update (CCScheduler.js:167)
at Class.update (CCScheduler.js:480)
at Class.drawScene (CCDirector.js:226)
at Class.mainLoop (CCDirector.js:884)
at callback (CCBoot.js:2160)
【问题讨论】:
标签: cocos2d-iphone cocos2d-x cocos2d-x-3.0 cocos2d-js