Skip to content

Commit

Permalink
Merge pull request #163 from omenking/fix-character-animations
Browse files Browse the repository at this point in the history
Fix Character Animation calls
  • Loading branch information
omenking authored Dec 12, 2017
2 parents 512558c + 9e4a5b2 commit 2937b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/core/garbage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export default class ComponentGarbage {
// send out character animation before the 20frames delay
if (combo > 3) {
if (this.pi === 0)
this.stage.playfield0.character.sprite.current_animation = "attack"
this.stage.playfield0.character.current_animation = "attack"
else if (this.pi === 1)
this.stage.playfield1.character.sprite.current_animation = "attack"
this.stage.playfield1.character.current_animation = "attack"
}
}

Expand All @@ -85,7 +85,7 @@ export default class ComponentGarbage {

// if garbage sent after delay - play attacked on the playfield chosen
if (v.combo > 3)
playfield.character.sprite.current_animation = "attacked"
playfield.character.current_animation = "attacked"

let o
if (v.combo === 4) {
Expand Down

0 comments on commit 2937b24

Please sign in to comment.