Text
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Text
How familiar are you with Lua/programming in general?
You see, for that purpose variables are used. If you know how to program, there's your answer. If not, I'd recommend learning some basic programming skills first.
You see, for that purpose variables are used. If you know how to program, there's your answer. If not, I'd recommend learning some basic programming skills first.
Help us help you: attach a .love.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Text
No, it's a function. You pass it the parameters of text and position.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Text
No, but you can use variables as arguments to love.graphics.print():intensity wrote:I've been using Lua for about a year, but I just downloaded Love. Are you saying love.graphics.print() returns the text object?
Code: Select all
love.graphics.print(t, x, y)
Help us help you: attach a .love.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Text
http://love2d.org/wiki/Tutorial:Using_Input has an example.
Help us help you: attach a .love.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Text
It does if you pass 'text' to love.graphics.draw()intensity wrote:All it is is changing the value of a variable called text... does text actually represent something in the renderer?
I have a feeling love callbacks is what you actually need to read though. Hopefully learning about the LOVE callbacks will help you understand what is going on.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Text
FIFY.TechnoCat wrote:It does if you pass 'text' to love.graphics.print()intensity wrote:All it is is changing the value of a variable called text... does text actually represent something in the renderer?
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests