Share this post

Link to post

Share on other sites

Manage to Fix part of the camera had to be more "specific" with my parameters

and I notice that the (I believe is the dead zone) starts like this:

is there a way to place it in the center? (I'll be checking camera documentation meanwhile if someone could help it would be amazing) and last but not less important, how to we add bounds to the camera? I add some but obvs not working (or maybe I'm doing it wrong but here :

would like to show only the red part and not all the way to the blue part

If you need to change the camera bounds, it should be done with camera.bounds.setTo(…), but it's unlikely that you do. The camera bounds default to the world bounds and can't be resized smaller than them.

If you want to clip the visible area around the player, then you need to use a mask. There's a thread on that here somewhere.

Share this post

Link to post

Share on other sites

I already have my game world set to 1216x800 but I do after that game.renderer.resize( 1216/2, 800/2); to make it look like the picture above (very close instead of super far), this is how it looks without the resize AND setting the bounds to 1216x800 as you said

now this is how it looks with bounds in 608x400 WITHOUT setting up all the info I had (just like the one above)

but if I add all the info back...

I can actually move my character without loosing him only problem is the black screen to the left which is what I'm trying to fix, that stills comes up if I don't resize my game: