At 6/21/13 08:27 PM, Luis wrote:
are you arguing with yourself?
no, I just thought i'd won against Flixel.
Turns out, it beat me :(
no matter what I do, I can't remove the whitespace that's around the character. I can just try to minimize it.
I tried pixel-perfect collision detection, but that only works with FlxSprites and the FlxTileMap extends FlxObject directly.
I tried JSON, but Flixel doesn't have anything for loading in sprite sheets with JSON.
I tried making different sprites and copying the images onto the main player sprite, but Flixel doesn't do sprite resizing.
So, i'm stuck with the whitespace unless I start adding extra checks with the pixel-perfect detection, which I really, really don't want to do because that would mean scrapping most of my current code and re-writing some of Flixel's classes.
Screw it. I'll just hide the whitespace as best as possible.