mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue