multiple cameras issue
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, Std.int(FlxG.width/2), Std.int(FlxG.height/2)); FlxG.cameras.add(cameraUI); var activeCam : Array <FlxCamera>; activeCam = new Array(); activeCam.push(FlxG.cameras.list); UI.cameras = activeCam;
What am I doing wrong ?
I don't think setting .cameras on a group does anything. Try setting it on the individual objects.
That's work ! Thanks a lot.