How to properly rotate a FlxSpriteGroup?

116 views
Skip to first unread message

Fergus Perez

unread,
Mar 12, 2015, 7:16:10 PM3/12/15
to haxef...@googlegroups.com
Hi

The problem of properly rotate a FlxSpriteGroup has already appeared  here

It was pointed a possible solution or the use of FlxNestedSprite

Well... I tried both and none seem to work. I also tried a more generic solution pointed here using matrix transformations and I couldn't make it work.

After all this time, the only progress I made was by changing the rotation point of the child sprites to be the same as the parent, but when I tried to rotate a child sprite I can't do it properly.

So... I asking if someone has managed to implement a working solution of this problem or point me in the right path to find a one.

Thanks 

yannicular

unread,
Mar 13, 2015, 6:14:29 AM3/13/15
to haxef...@googlegroups.com

Hi Fergus,

I had a similar problem, trying to scale up the group. I tried using both FlxSpriteGroup and FlxNestedSprite.
I finally chose to stick with FlxNestedSprite instead of FlxSprirteGroup, I also created an Issue and proposed a solution I hope it's gonna be included in a future release of flixel-addons

Let me know if this helps

Fergus Perez

unread,
Mar 14, 2015, 6:44:43 AM3/14/15
to haxef...@googlegroups.com
Yes. With your solution I'm able to work it out.

Thanks a lot !!!

yannicular

unread,
Mar 14, 2015, 1:07:33 PM3/14/15
to haxef...@googlegroups.com
Nice! Glad I could help
Reply all
Reply to author
Forward
0 new messages