I want to implement a minimap for a prototype that I am working on.
I want to show this icon on the minimap to highlight the position of the player but I can’t get this icon by HeartBeast to show properly in the SubViewPort. I have to crank the scale of the sprite way up but even then there are some weird artefacts. How can I get this to work properly?
I have the default texture filter of the Camera2D in the SubViewPort set to Nearest.
Have you tried setting the sprite rendering mode to ‘Pixel Perfect’ in the inspector? That might help with the artifacts when scaling the player icon in the minimap
Have you tried setting the sprite rendering mode to ‘Pixel Perfect’ in the inspector? That might help with the artifacts when scaling the player icon in the minimap. For a more polished look, you might also consider using pre-made pixel art specifically designed for UI elements at different scales. There’s a good variety of pixel art for sale available if you’re interested!
You have to go into the SubViewport, NOT SubviewportContainer, and turn on “snap_2d_transforms_to_pixel”, if that doesn’t work try with “snap_2d_vertices_to_pixel”.