Skip to content

Problems with FlxG.cameras.setDefaultDrawTarget #2347

Answered by Geokureli
Lbones-ai asked this question in Q&A
Discussion options

You must be logged in to vote

@Lbones-ai, the problem may be that you're adding _cameraUI as a defaultDraw camera, too, so it's drawing everything at zoom:1.0 after/on top of the _gameCamera, try the following and setDefaultDrawTarget should work as expected.

FlxG.cameras.add(_cameraUI, false);

Also, you shouldn't need to even call setDefaultDrawTarget(_gameCamera, true); as reset(_gameCamera) will set it as a default draw target

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Dramasso
Comment options

@Dramasso
Comment options

@Geokureli
Comment options

@Dramasso
Comment options

@Geokureli
Comment options

Answer selected by Lbones-ai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants