Added handling for thang type goesTo animation properties.
This commit is contained in:
parent
2a3e47b08f
commit
ee24263232
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
||||||
@actionQueue.push @currentRootAction.relatedActions.end if @currentRootAction?.relatedActions?.end
|
@actionQueue.push @currentRootAction.relatedActions.end if @currentRootAction?.relatedActions?.end
|
||||||
@actionQueue.push action.relatedActions.begin if action.relatedActions?.begin
|
@actionQueue.push action.relatedActions.begin if action.relatedActions?.begin
|
||||||
@actionQueue.push action
|
@actionQueue.push action
|
||||||
|
if action.goesTo and nextAction = @actions[action.goesTo]
|
||||||
|
@actionQueue.push nextAction if nextAction
|
||||||
@currentRootAction = action
|
@currentRootAction = action
|
||||||
@playNextAction()
|
@playNextAction()
|
||||||
|
|
||||||
|
|
Reference in a new issue