Added animation on ValueBar
This commit is contained in:
parent
4b940942aa
commit
875ef03d03
|
@ -39,7 +39,9 @@ module SpaceTac.View {
|
||||||
// Update graphics representation
|
// Update graphics representation
|
||||||
update() {
|
update() {
|
||||||
if (this.bar_sprite) {
|
if (this.bar_sprite) {
|
||||||
this.bar_sprite.scale.x = this.proportional;
|
var tween = this.game.tweens.create(this.bar_sprite.scale);
|
||||||
|
tween.to({x: this.proportional});
|
||||||
|
tween.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue