Blurry Text????

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Beau192
Prole
Posts: 3
Joined: Wed Dec 20, 2017 12:56 am

Blurry Text????

Post by Beau192 »

I'm trying to print your score for a game, but it ends up super blurry. Code:

Code: Select all

love.graphics.print("Your score is " .. score, 550, 150, 0, 3, 3)
Can't seem to figure this one out. I read the wiki and it said: "Text may appear blurry if it's rendered at non-integer pixel locations." I assume that means that my "score" variable isn't an integer, but I'm not sure. So, can someone help? :ehem:
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Blurry Text????

Post by zorg »

Your pixel locations are the 550 and 150 in your code... then again, you're scaling the text up by 3 on both axes, hence the blurryness.
Create a new font with a larger size, set it and draw it with scalex and scaley of 1.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests