Skip to content

Commit

Permalink
Fixed minor things
Browse files Browse the repository at this point in the history
Author: wastedabuser
Refs SammyJoeOsborne#2
  • Loading branch information
Adolio committed Jan 24, 2015
1 parent 66c14a2 commit dd33e4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/com/sammyjoeosborne/spriter/Animation.as
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ package com.sammyjoeosborne.spriter
{
if (!_isPlaying || _playbackSpeed == 0 || !_spriterMC.isReady) return;

//trace("adjusting for playback speed")
$time *= 1000 * _playbackSpeed; //turn the additional time into milliseconds, then adjust for proper playbackSpeed
_currentTime += $time * _playDirection;
normalizeCurrentTime();
Expand Down Expand Up @@ -453,7 +452,7 @@ package com.sammyjoeosborne.spriter
if (!_isTransitioning)
{
$updated = updateCurrentFrame(); //did the current frame change or are we just further along in the same frame
$currentMainKey= getCurrentFrame();
$currentMainKey = getCurrentFrame();
if ($updated)
{
callFrameCallbacks(_currentKeyIndex);
Expand Down Expand Up @@ -568,7 +567,7 @@ package com.sammyjoeosborne.spriter
$image.rotation = 0;
$image.scaleX = $image.scaleY = 1;
$image.pivotX = $key.pivot.x * $image.width;
$image.pivotY = ((1 - $key.pivot.y) * $image.height);
$image.pivotY = ((1 - $key.pivot.y) * $image.height);
}
//it's already on the stage so don't add it, but update dirty props
else
Expand Down

0 comments on commit dd33e4f

Please sign in to comment.