Hi everyone, I was making a custom hud to my mod (with custom sprites), and when i tried to put those in game, i realise that the sprites were too big, so i wanted to know if there's ways to change the size of the sprites by code.
(also sorry if i sound rude qwq)
idk if you still need this, but use drawScaled (https://wiki.srb2.org/wiki/Lua/Functions#v.drawScaled). (you will need to multiply the X and Y values by FRACUNIT, and scale use FRACUNIT, like: FRACUNIT / 2 = 0.5 of the original size or FRACUNIT = 1 the original size)
idk if you still need this, but use drawScaled (https://wiki.srb2.org/wiki/Lua/Functions#v.drawScaled). (you will need to multiply the X and Y values by FRACUNIT, and scale use FRACUNIT, like: FRACUNIT / 2 = 0.5 of the original size or FRACUNIT = 1 the original size)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.