multiple cameras issue

  • Hi,
    I would like to use 2 cameras, one for the game (which can zoom/dezoom) and one for the UI. But I can't manage to display my FlxGroup only to one camera or another, whatever I do they always display on both.

    var cameraUI: FlxCamera = new FlxCamera(0, 0,,;
    var activeCam : Array <FlxCamera>;		
    activeCam = new Array();
    UI.cameras = activeCam;

    What am I doing wrong ?

  • administrators

    I don't think setting .cameras on a group does anything. Try setting it on the individual objects.

  • That's work ! Thanks a lot.

Log in to reply

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