resizing text with pixel games

jackhenjackhen Posts: 11Member
in GUI

how can I change the size of my font so it is still readable when placed on a small scene? all my pixel art is only around 32 pixels large, and I cannot figure out how to place readable text onto a scene this small. Is the only solution to increase the scale of my scenes and zoom out the camera?

Comments

  • cyberealitycybereality Posts: 927Moderator

    You can create multiple dynamic text objects, at different sizes like small, medium, and large. Then when the game starts, swap out the font depending on the screen dimensions.

  • MegalomaniakMegalomaniak Posts: 2,618Admin

    You could try rendering the text on a different canvas layer to have it in different scale or you could try rendering your game in a viewport so that it can be in different scale from the GUI.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file