From 84177479db8e20823cb3122769c87eaf57f2b861 Mon Sep 17 00:00:00 2001 From: Fernando Bevilacqua Date: Thu, 20 Sep 2012 18:08:42 -0300 Subject: [PATCH] Pan adjustments If FlxSound is to the left of the target object, the sound comes from the left speaker. --- org/flixel/FlxSound.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/flixel/FlxSound.as b/org/flixel/FlxSound.as index 5393488c..7fdee1ce 100644 --- a/org/flixel/FlxSound.as +++ b/org/flixel/FlxSound.as @@ -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;