How to let camera showing the scene only

Hi everyone…

I just want the camera showing the scene only, it shows behind the boundaries and in the same time i want it focus the player
My size project is 1920 x 1080

These events should work well as I use them to enforce the camera and to center on the Character

Thank u for your time but still the same :frowning:

It depends where your sprites are positioned I mean are they in the center square ?

these screenshots will explain what I mean

If they are not in the center game box you will have to alter the 1920 1080 part of the condition to where the sprites are placed.

Wouldn’t it first put the camera to 1920, 1080 position and then take it all the way back to players position?

Yes the player is inside the square but still the camera shows the the left and bottom part that out of square

No the enforce would make the camera stick to the boundary position enforced which is why if you have say 2 areas that continue with the game you have to do 3840 x 1080 if there are 3 game areas then you would add 5670 x 1080.
the camera will always center on the character but within the limits that are chosen.

I realised I made a mistake the events should be the other way around

Try this one instead

it looks better a little bit but the plank still there, also when the player move out the scene the camera not followed
plz help, every project I create the same problem comes with it

You could try this in the game properties can’t think of anything else

There are two different ways to fix the problem i found:

  1. spawn player a bit more far and place a wall that he cant escape and see this(but you stilll need to continue down the ground)
  2. continue the location and place a wall

if you using last bonzillesmobilegames’ method you need to make it like THIS

everyone thank u so much I write 5670 x 1080 and the screen opened like I wanted to

1 Like

Set the Camera boundary at your wall object.