Capture another image in the atlas (SOLVED)

When the window is resized, the sprite “captures” the part of the image that is higher in the atlas.

Procedure:

  1. Created a project from the Mobile game template.

  2. In main.collection in go object, delete background sprite.

  3. Start the game.

  4. Resize the window in height. When the window is resized, the white stripe may not be visible, or “smaller” may be visible.

If you change the color of the background image in the atlas to red, the bar will now turn red. Therefore, I decided that there was a “capture” of a part of the image from the atlas.
new_atlas bg_red

Specifications:

  • Notebook: Lenovo IdeaPad Gaming 3
  • OS: Windows 11
  • Processor: AMD Ryzen 7 4800H
  • RAM: 16GB, DDR4
  • Video card: NVIDIA GeForce GTX 1650 - 4 GB

Sample 2
Atlas:


Result:
sample_2

A similar problem occurs when you change the scale of an object.

“Extrude borders” in atlas properties should not be 0 (2 by default). Perhaps this is the cause of the problem.

1 Like

Thanks! That helped. By default, the specified template is set to 0.

Oh, this is a mistake on our part. I thought we had changed all template projects to extrude borders. I’ve updated the template now though:

2 Likes

Thanks. But, in practice, I have learned better how to work with the atlas. =)

2 Likes

True! More info about the atlas properties: Atlas manual

1 Like

I have studied the documentation. But until you face tasks and problems, you will not study it.

1 Like