Page 2 of 2

Re: [SOLVED]Positioning a image in another image(A weap in h

Posted: Thu Jan 16, 2014 10:33 am
by Doctory
Instead of using:

Code: Select all

love.graphics.print("STAMINA: "..player.stamina,100,80)
You can use:

Code: Select all

love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
This will return an integer instead of a double (or float).
Basically, this will get rid of the .<number>

Re: [SOLVED]Positioning a image in another image(A weap in h

Posted: Fri Jan 17, 2014 11:30 pm
by Мэтю
Doctory wrote:Instead of using:

Code: Select all

love.graphics.print("STAMINA: "..player.stamina,100,80)
You can use:

Code: Select all

love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
This will return an integer instead of a double (or float).
Basically, this will get rid of the .<number>
Thanks for the tip :awesome: