using Math.max() for FlxSprite's onScreen() method