FlxCamera.defaultCameras = [FlxG.camera], to render sprites only to the main camera by default. Then you can pick a few objects you want to render on custom camera(s) and set
object.cameras = [customCamera] for each of those.
Posts made by Gama11
RE: Necessary to remove off-screen FlxSprite instances?
@starry-abyss Also, to add to that: off-screen sprites are not rendered, but they are still updated.
RE: MenuState.hx is missing after >flixel tpl –n “NewGameName”...How can it be created
So you want to have a
MenuStateso you can follow the tutorial and delete it? :D
MenuStateis not part of the default template anymore. You can just duplicate
PlayState.hxand replace the class name.
RE: FlashDevelop debugging doesn't work in flash target
Flash debugging in FlashDevelop was always a pain to setup correctly for me. In my experience, it's much more straightforward with VSCode and the Haxe Debug extension.
RE: HUD not working with camera.angle, camera.setSize and camera.zoom
You can put the HUD into a completely separate camera.
RE: Visual Studio Code on Mac AutoComplete issue
Can you check if you see any errors in the output panel with
RE: New Openfl and Lime support! No, wait, just kidding...
Check the blog post I linked. ;)