Code: Select all
love.graphics.print("STAMINA: "..player.stamina,100,80)
Code: Select all
love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
Basically, this will get rid of the .<number>
Code: Select all
love.graphics.print("STAMINA: "..player.stamina,100,80)
Code: Select all
love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
Thanks for the tipDoctory wrote:Instead of using:
You can use:Code: Select all
love.graphics.print("STAMINA: "..player.stamina,100,80)
This will return an integer instead of a double (or float).Code: Select all
love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
Basically, this will get rid of the .<number>
Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 9 guests