Thank you for the response, the menu works now.
Here is the full source
Search found 4 matches
- Mon Jan 20, 2014 6:29 pm
- Forum: Support and Development
- Topic: Problem dealing with changing a variable
- Replies: 2
- Views: 1252
- Mon Jan 20, 2014 5:35 pm
- Forum: Support and Development
- Topic: Problem dealing with changing a variable
- Replies: 2
- Views: 1252
Problem dealing with changing a variable
Hello, I'm creating a menu and I have a difficulty button that is supposed to change from easy to medium, medium to hard and hard to easy when pressed. However nothing seems to happen, and I don't get an error either. Here is the code related to the difficulty option. state = mainmenu mode = "E...
- Sat Jan 18, 2014 10:19 pm
- Forum: Support and Development
- Topic: Löve crashes when trying to identify key presses
- Replies: 4
- Views: 1731
Re: Löve crashes when trying to identify key presses
Thank you, the code works now, however now I am even more confused about the use of "while". Is there any guides on this?
- Sat Jan 18, 2014 8:32 pm
- Forum: Support and Development
- Topic: Löve crashes when trying to identify key presses
- Replies: 4
- Views: 1731
Löve crashes when trying to identify key presses
Hello there, I am quite new to Löve and Lua, I've only worked with Arduino before. I'm trying to make Löve register the keys W, A, S and D, however Löve crashes when either key is pressed. This is the code: -- Controls Pressed function love.keypressed(key) while key == 'w' do w_down = true end while...