The main character of my game is a FlxSpriteGroup where every sprite inside is a different body part ( head, legs, body, etc.)
I'm trying to make the character collide together with another walls FlxGroup wich contains the edges of the screen, but the problem is that the FlxG.collide function is colliding each of the sprites inside the FlxSpriteGroup on its own, so when walking in a wall the various body parts get clumped together.
What I'd like to do is have a hitbox on the feet of the character and use that for the collision of the whole SpriteGroup, but I haven't found a way to do this.
Any help?