How can I control a sprite resolution when zooming in the a Camera2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dmitriy_shmilo

I’d like to make the player able to zoom the camera in while playing, and when the zoom reaches a certain threshold, I’d like the user to see the higher-resolution sprites and tiles.

Is there a built in way to achieve this? If not, are there any examples or best practices to follow while implementing a zooming in and out? I’d like the experience to be as smooth as possible.

Thank you.

:bust_in_silhouette: Reply From: Meepophobia

I believe It will automatically happen if you load your high-resolution sprites and generate mipmaps on the import section of your sprites.

Thank you very much.

dmitriy_shmilo | 2023-06-27 16:22