On more thing what I noticed after scale, is that margins between objects became uneven (some rows have bigger margin some smaller, before distance between objects was the same) , do I need to swicth on/off some pixel snapping or there is something more?
I'm developing a game built on FlxNestedSprite. The group positioning/scaling/rotating is really convenient, and is the kind you are looking for.
I can tell you my work around for your "Every Child Must be a FlxNestedSprite" issue.
I just created a base class that extends FlxNestedSprite, that has some logic built in to copy any other sprite, either on load, every frame, or when you need it to.
For example, FlxText, which cannot be added directly as a child to a FlxNestedSprite. I just use this helper class:
class FlxNestedTextSprite extends FlxNestedSprite
private var text:FlxText;
private var fontPath:String;
private var message:String;
private var textBoxAlign:String;
private var size:Int;
private var textColor:FlxColor;
public function new(message:String, fontPath:String,
this.message = message;
this.fontPath = fontPath;
this.size = size;
this.textColor = textColor;
this.textBoxAlign = textBoxAlign;
text = new FlxText(0, 0, 0, message);
text.setFormat(fontPath, size, textColor, "left");
private function copyFlxTextToSprite(destinationSprite:FlxSprite,
If you need to add some other non-FlxNestedSprite as a child, you can do something similar.