1
0
Fork 0

Added animation on ValueBar

This commit is contained in:
Michaël Lemaire 2015-01-22 01:00:00 +01:00 committed by Michaël Lemaire
parent 4b940942aa
commit 875ef03d03

View file

@ -39,7 +39,9 @@ module SpaceTac.View {
// Update graphics representation
update() {
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();
}
}