Anyone knows what's wrong with these button texts?
Posted: Tue Feb 22, 2022 5:35 pm
I am very confused, as I have never created buttons before. I don't understand this, the text goes off when I do the following equation:
text = "Play Game"
font = Normal font
w = width of the box
h = height of the box
x = x pos of the box
y = y pos of the box
Code: Select all
love.graphics.print(
text, font,
(w/2) - #text,y
)
font = Normal font
w = width of the box
h = height of the box
x = x pos of the box
y = y pos of the box