Skip to content

Commit

Permalink
Fix Character Animation calls
Browse files Browse the repository at this point in the history
somehow through transitioning commits these changes werent completely saved
  • Loading branch information
Michael authored Dec 10, 2017
1 parent f478953 commit 9e4a5b2
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 9e4a5b2

Please sign in to comment.