Added handling for thang type goesTo animation properties.

This commit is contained in:
Scott Erickson 2014-02-06 17:00:02 -08:00
parent 2a3e47b08f
commit ee24263232

View file

@ -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()