[SOLVED]Positioning a image in another image(A weap in hand)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

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

Post 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>
User avatar
Мэтю
Prole
Posts: 32
Joined: Mon Jan 06, 2014 1:24 pm
Location: Espírito Santo, Brazil
Contact:

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

Post 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:
World needs love.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests