From ee24263232be8b6b46a4dfd9b804f4a0394ed074 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 6 Feb 2014 17:00:02 -0800 Subject: [PATCH] Added handling for thang type goesTo animation properties. --- app/lib/surface/CocoSprite.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/surface/CocoSprite.coffee b/app/lib/surface/CocoSprite.coffee index 0f56f3b77..ac7738738 100644 --- a/app/lib/surface/CocoSprite.coffee +++ b/app/lib/surface/CocoSprite.coffee @@ -120,6 +120,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass @actionQueue.push @currentRootAction.relatedActions.end if @currentRootAction?.relatedActions?.end @actionQueue.push action.relatedActions.begin if action.relatedActions?.begin @actionQueue.push action + if action.goesTo and nextAction = @actions[action.goesTo] + @actionQueue.push nextAction if nextAction @currentRootAction = action @playNextAction()