Merge pull request #86 from ScottLogic/rounded-costume-indices
Rounded Costume Indices
This commit is contained in:
commit
a5cf476ebc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ var Sprite = function(data) {
|
|||
this.rotationStyle = data.rotationStyle || 'normal';
|
||||
this.isFlipped = data.direction < 0 && data.rotationStyle == 'leftRight';
|
||||
this.costumes = data.costumes || [];
|
||||
this.currentCostumeIndex = data.currentCostumeIndex || 0;
|
||||
this.currentCostumeIndex = Math.floor(data.currentCostumeIndex) || 0;
|
||||
this.previousCostumeIndex = -1;
|
||||
|
||||
this.objName = data.objName || '';
|
||||
|
|
Reference in a new issue