Skip to content

Commit

Permalink
Pan adjustments
Browse files Browse the repository at this point in the history
If FlxSound is to the left of the target object, the sound comes from the left speaker.
  • Loading branch information
Dovyski committed Sep 20, 2012
1 parent d190e3a commit 8417747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org/flixel/FlxSound.as
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ package org.flixel

if(_pan)
{
var d:Number = (_target.x-x)/_radius;
var d:Number = (x-_target.x)/_radius;
if(d < -1) d = -1;
else if(d > 1) d = 1;
_transform.pan = d;
Expand Down

0 comments on commit 8417747

Please sign in to comment.