Search found 39 matches

by BoopDeePoop
Sun Apr 21, 2013 8:52 pm
Forum: Support and Development
Topic: Trying to make the player jump.
Replies: 2
Views: 1615

Trying to make the player jump.

So far, this code works perfect except for one thing, if I hold down the spacebar, the player continuously goes up until it is let go. Is there a way to only make the game recognize one spacebar push and not just let the player fly to the top of the screen? It's in the player_control function. playe...
by BoopDeePoop
Mon Dec 31, 2012 8:24 pm
Forum: Support and Development
Topic: Black screen when I run the game.
Replies: 7
Views: 5328

Re: Black screen when I run the game.

Now it runs but when I click start it gives me an error that says I need to contact myself. While developing, you need to change this line in conf.lua to t.release = false That will give you more helpful error screens. (It's the default, so you can just leave out that line as well.) Thanks, I didn'...
by BoopDeePoop
Mon Dec 31, 2012 2:51 am
Forum: Support and Development
Topic: Black screen when I run the game.
Replies: 7
Views: 5328

Re: Black screen when I run the game.

You might have to jump into your love.mousepressed function and make it so that when you click on an option in the menu that it switches the gamestate. ie. You click on new game, then gamestate == "playing" Hope that helps! :ultraglee: I've already done that in menu.lua. In the function b...
by BoopDeePoop
Mon Dec 31, 2012 2:21 am
Forum: Support and Development
Topic: Black screen when I run the game.
Replies: 7
Views: 5328

Re: Black screen when I run the game.

Now it runs but when I click start it gives me an error that says I need to contact myself.
by BoopDeePoop
Mon Dec 31, 2012 2:10 am
Forum: Support and Development
Topic: How to shorten a string?
Replies: 6
Views: 2771

Re: How to shorten a string?

Thanks everyone here for helping me. I got it to work so thanks again.
love.graphics.print("You've been playing for " .. math.floor(love.timer.getTime()).. " seconds.", 5, 45)
I did that and it did exactly what I wanted.
by BoopDeePoop
Mon Dec 31, 2012 2:07 am
Forum: Support and Development
Topic: Starting a gem with love
Replies: 2
Views: 1653

Re: Starting a gem with love

Also, this will help you actually start the game.
https://love2d.org/wiki/Config_Files
by BoopDeePoop
Mon Dec 31, 2012 1:58 am
Forum: Support and Development
Topic: Black screen when I run the game.
Replies: 7
Views: 5328

Black screen when I run the game.

I'm having a strange problem that and I can't find anything wrong with my code. The problem is that when I tried to move my code for a "debug menu" at the top of the screen to a different file, the box would show but the text wouldn't. I then tried to move everything back to my main.lua wh...
by BoopDeePoop
Mon Dec 31, 2012 1:53 am
Forum: Support and Development
Topic: My .love file
Replies: 4
Views: 2235

Re: My .love file

If you're on Windows you can just make a folder with main.lua inside and drag the folder ontop of the LOVE.exe shortcut or whatever and it will run each time.
by BoopDeePoop
Sun Dec 30, 2012 4:20 am
Forum: Support and Development
Topic: How to shorten a string?
Replies: 6
Views: 2771

How to shorten a string?

Here is what I have: function love.load() time_passed = 0 end function love.update(dt) time_passed = time_passed + dt end function love.draw() love.graphics.print("You've been playing for " .. time_passed .. " seconds.", 5, 45) end How do I make the seconds just a single digit ra...