AdamAtomic/flixel — Issue #201: FlxCamera and FlxGroup - Make FlxGroup pass its cameras array to its members
Author: mouseas
Created: 2011-11-18 06:23:22+00:00
State: open

I was having a hard time figuring out how to only show object groups on specific cameras. Finally I found out the FlxBasic does not grab its cameras array from the FlxGroup it's in, nor does a FlxGroup apply its cameras to its members. This means I have to tell each object to use a specific array of cameras.

May I suggest adding a feature to FlxGroup where if it has an array of cameras, you can tell it to apply that array to all its members when they're added and/or updated? If it's done that way, it's much easier to put all the objects going in my map in one FlxGroup, the radar in another FlxGroup, and the main play area in a third FlxGroup, for example.