Skip to content

FlxCamera and FlxGroup - Make FlxGroup pass its cameras array to its members #30

Open
@moly

Description

@moly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions