How to position x and y in Text.Lua...?

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
User avatar
schmavies
Prole
Posts: 5
Joined: Fri Apr 11, 2014 10:55 pm
Location: The Gamma Planetary System, the 58th Planet.

How to position x and y in Text.Lua...?

Post by schmavies »

Help. Im dumb. :crazy:

I decided to try out text.lua from markandgo and I learned how to display wrapped text, but I don't know how to set the x and y axis because the text stays on the origin.

Can someone tell me how to to do this and maybe provide a general example of it? I would appreciate it a lot. :death:
"640K ought to be enough for anybody."
- Bill Gates
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: How to position x and y in Text.Lua...?

Post by s-ol »

you can use transformations to move it aronund: https://www.love2d.org/wiki/love.graphics.translate

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

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