Search found 8 matches
- Thu Sep 05, 2013 2:56 am
- Forum: Support and Development
- Topic: Having a problem...
- Replies: 1
- Views: 1475
Having a problem...
So, I want to have a main menu that is controlled by they w and s keys. implemented this, but... It doesn't act like I want it to... Pressing the w key to go up works... but, pressing the s key to go down, takes you all the way down. I debuged this, and found that it does each thing sequentially... ...
- Sun Jan 27, 2013 9:26 pm
- Forum: Support and Development
- Topic: Pick a random image?
- Replies: 2
- Views: 2432
Re: Pick a random image?
Thanks for that, Silly mistake by me.
- Sun Jan 27, 2013 9:00 pm
- Forum: Support and Development
- Topic: Pick a random image?
- Replies: 2
- Views: 2432
Pick a random image?
I want my game to pick a random image using this piece of code
When I run the game, It tells me Syntax Error: main.lua:11: ')' expected near 'ObjNum'
Code: Select all
ObjNum = math.random(1, 3)
scenes = love.graphics.newImage("Images/"ObjNum".png")
- Sat Jan 26, 2013 2:57 am
- Forum: Support and Development
- Topic: My time not printing to the screen but is working with print
- Replies: 4
- Views: 3061
Re: My time not printing to the screen but is working with p
One more question, when my timer hits, 14.5, I have it set to 0 and then start again but I want it to keep going up to 14.5 and then going back to 0 and starting again, any help? I currently have this code function love.update(dt) timer = love.timer.getTime() if timer >= 14.5 then timer = 0 end if t...
- Sat Jan 26, 2013 2:45 am
- Forum: Support and Development
- Topic: My time not printing to the screen but is working with print
- Replies: 4
- Views: 3061
Re: My time not printing to the screen but is working with p
I will try that. If it doesn't work, I will post the .love
EDIT: Just didn't define the location, that worked.
EDIT: Just didn't define the location, that worked.
- Sat Jan 26, 2013 2:22 am
- Forum: Support and Development
- Topic: My time not printing to the screen but is working with print
- Replies: 4
- Views: 3061
My time not printing to the screen but is working with print
I have run into a problem when working on my game. I need a timer and it doesn't seem to be working. When I use print(timer) it works but when in love.draw() with this code love.graphics.print(timer) it gives me the error, "Error, main.lua.18: bad argument #1 to 'print' (string expected, got ni...
- Wed Jan 23, 2013 12:40 am
- Forum: Support and Development
- Topic: Textbox in love?
- Replies: 2
- Views: 2160
Textbox in love?
Is it possible to have some kind of textbox with out having to define every single keyboard button and making that print to a string?
- Tue Jan 22, 2013 12:06 am
- Forum: Support and Development
- Topic: How to stick to a surface without physics and, rotate screen
- Replies: 1
- Views: 1201
How to stick to a surface without physics and, rotate screen
Hey love community, I have just started to work on a game and I have a concept but I don't really know how to implement it. I looked at the gridlocked player tutorial and that got me started but I want to add more. 1, I want to always have the player stuck to the cubes on the map and, possibly only ...