Skip to content

Commit

Permalink
Fix bug in FlxSound.proximity
Browse files Browse the repository at this point in the history
FlxSound.proximity was inverted: the closer the object was, the lower was the volume.
Fix FlixelCommunity#4, AdamAtomic#228 .
  • Loading branch information
Dovyski committed Sep 18, 2012
1 parent dde536b commit d190e3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions org/flixel/FlxSound.as
Expand Up @@ -192,6 +192,8 @@ package org.flixel
if(radial < 0) radial = 0;
if(radial > 1) radial = 1;

radial = 1 - radial;

if(_pan)
{
var d:Number = (_target.x-x)/_radius;
Expand Down

0 comments on commit d190e3a

Please sign in to comment.