I have a problem whit the camera in the snake tutorial (SOLVED)

Hello, when I compile and run Snake project as described in the online tutorial I see just a quarter of the map, corresponding to the uper right corner of the screen, how can I solve this problem?

Thank you.

Screen capture:

It looks like you one of these problems:

  1. You haven’t painted the tiles of the tilemap so that they start bottom left
  2. You haven’t positioned the tilemap component so that the lower left corner of your tiles are in the lower left corner of the screen

Is your tilemap positioned at 0x0 and does it look like in the picture below when you open your main collection:

2 Likes

If you open main.collection origo of the game world is where the green and red line meet. That is the lower left corner of the screen (by default).

2 Likes

Thank you, I fixed the problem :slight_smile:

3 Likes