Group rotation

  • Hi, I am stuck with small problem. I have group of sprites on screen and I need to rotate them together , using centre of group as pivot point, at the same time each individual sprite also need to be rotated so image stays as it was just position if sprite is changed. Right now I am using FlxSpriteGroup as container but as I found out its rotating each sprite individually. After some searches I found FlxNestedSprite but it forces all children to be FlxNestedSprite. I would be thankful if someone could show me some direction how to achieve container feature in HaxeFlixel :)

  • administrators

    Unfortunately, the options are pretty much limited to either FlxNestedSprite or FlxSpriteGroup right now.

  • Ok thx for info, will try to think up something.

Log in to reply

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.