Search found 12 matches

by Lolocks
Sun Jul 20, 2014 5:07 pm
Forum: Support and Development
Topic: How to close the window? [SOLVED]
Replies: 3
Views: 2697

Re: How to close the window? [SOLVED]

Thanks!

Man, I can't believe I forgot to check the events. Lol.
by Lolocks
Sun Jul 20, 2014 4:50 pm
Forum: Support and Development
Topic: How to close the window? [SOLVED]
Replies: 3
Views: 2697

How to close the window? [SOLVED]

From my previous help posts, I think most of you know that I'm relatively new to love2d. Anyways, I'm trying to make it so when you hit the >esc< button on your keyboard, the game will close. I've looked around the wiki and didn't find anything (or maybe i'm bad at looking for things). Here's the co...
by Lolocks
Sat Jul 19, 2014 6:43 pm
Forum: Support and Development
Topic: Centering Text on the X axis only [SOLVED]
Replies: 5
Views: 4227

Re: Centering Text on the X axis only

Zeliarden wrote:try

Code: Select all

love.graphics.print("Example Text", (love.graphics.getWidth( )/2-TitleFont:getWidth("Example Text")/2), 10)
Thanks for helping!
by Lolocks
Sat Jul 19, 2014 5:58 pm
Forum: Support and Development
Topic: Centering Text on the X axis only [SOLVED]
Replies: 5
Views: 4227

Centering Text on the X axis only [SOLVED]

Sorry for all these threads But anyways, I'm trying to center text on the X axis *only*. On one of my canvas' I tried getting the width of the font then dividing by 2. It looked pretty centered. So for another canvas, I used the same 'algorithm', however, it was no where near centered. It was comple...
by Lolocks
Sat Jul 19, 2014 5:30 pm
Forum: Support and Development
Topic: Canvas Help [SOLVED]
Replies: 2
Views: 1522

Re: Canvas Help

When setting a canvas with love.graphics.setCanvas(canvas) you need to call the function a second time to "finish" your canvas object. Therefor you simply have to put love.graphics.setCanvas() without an argument behind your canvas code. --MainMenu Canvas love.graphics.setCanvas(MainMenuC...
by Lolocks
Sat Jul 19, 2014 5:03 pm
Forum: Support and Development
Topic: Canvas Help [SOLVED]
Replies: 2
Views: 1522

Canvas Help [SOLVED]

Some I'm starting to make a new game and I've come across a bug that should really be repaired. Short background story: I'm using the canvas thingy to make a startup menu with different pages. Anyways, for some reason, when I set the canvas after converting into one, the canvas is blank. I asked a f...
by Lolocks
Sat Jul 19, 2014 2:56 pm
Forum: Libraries and Tools
Topic: Quickie [was: Immediate Mode Gui]
Replies: 70
Views: 54818

Re: Quickie [was: Immediate Mode Gui]

You load the library by adding something like gui = require "Quickie" to the top of your main/game lua (in this case, move the folder with all the library files into where main.lua is and name it 'Quickie'.). From then on, you can just call the function to add a button or whatever form yo...
by Lolocks
Fri Jul 18, 2014 10:11 pm
Forum: Libraries and Tools
Topic: Quickie [was: Immediate Mode Gui]
Replies: 70
Views: 54818

Re: Quickie [was: Immediate Mode Gui]

No seriously there's like nothing anywhere with instructions on how I can add Quickie to my current project. Could anyone help?
by Lolocks
Fri Jul 18, 2014 7:44 pm
Forum: Libraries and Tools
Topic: Quickie [was: Immediate Mode Gui]
Replies: 70
Views: 54818

Re: Quickie [was: Immediate Mode Gui]

I like this and I'd love to use it.

But can you provide instructions on how to add it to one's current project?