Lizard Attack
Re: Lizard Attack
It should work - KeyConstant
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Lizard Attack
I actually understand his problem/confusion. All other non-alphanumerical keys use a real name (tab,right,home...). Space key is the only one that for fun uses something out-of-box and don't follow same naming protocol. Also even that the wiki seems straightforward the (space) in left column can induce in error those who just quick look. Because in the first time no one usually doubt that "space" won't work.Nixola wrote:It should work - KeyConstant
I also still make the mistake of mechanically type "space" instead of " ", because it's more logic and intuitive. Dual acceptance of " " and "space" would be nice and would end that confusion.(space) Space key Replace (space) with the actual space character
EDITED: Also find/replace = " " than = "space" could have more probability of end in bad replacements.
Re: Lizard Attack
keypressed should relate to the actual key, and not the character.coffee wrote:I actually understand his problem/confusion. All other non-alphanumerical keys use a real name (tab,right,home...). Space key is the only one that for fun uses something out-of-box and don't follow same naming protocol. Also even that the wiki seems straightforward the (space) in left column can induce in error those who just quick look. Because in the first time no one usually doubt that "space" won't work.Nixola wrote:It should work - KeyConstantI also still make the mistake of mechanically type "space" instead of " ", because it's more logic and intuitive. Dual acceptance of " " and "space" would be nice and would end that confusion.(space) Space key Replace (space) with the actual space character
EDITED: Also find/replace = " " than = "space" could have more probability of end in bad replacements.
so pressing space would give "space", and enter would be "enter" (or "return")
then love.characterpressed would give the character pressed, so that multiple locales are supported (other country keyboards, with accents). So holding shift+m would make key=="M" (case sensitive)
Lua is not an acronym.
Re: Lizard Attack
function love.keypressed(key, unicode)
local characterpressed = string.char(unicode)
end
local characterpressed = string.char(unicode)
end
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
- Prole
- Posts: 14
- Joined: Mon Sep 03, 2012 7:05 am
- Location: Canadaka
Re: Lizard Attack
I agree.coffee wrote:I actually understand his problem/confusion. All other non-alphanumerical keys use a real name (tab,right,home...). Space key is the only one that for fun uses something out-of-box and don't follow same naming protocol. Also even that the wiki seems straightforward the (space) in left column can induce in error those who just quick look. Because in the first time no one usually doubt that "space" won't work.Nixola wrote:It should work - KeyConstantI also still make the mistake of mechanically type "space" instead of " ", because it's more logic and intuitive. Dual acceptance of " " and "space" would be nice and would end that confusion.(space) Space key Replace (space) with the actual space character
EDITED: Also find/replace = " " than = "space" could have more probability of end in bad replacements.
-
- Prole
- Posts: 14
- Joined: Mon Sep 03, 2012 7:05 am
- Location: Canadaka
Re: Lizard Attack
I thought about it, but didn't try it, as it just seemed crazy.Roland_Yonaba wrote:Maybe because you made the wrong test. Have you tested key == " " ?azonicrider wrote:however the Space bar just didn't want to cooperate.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Lizard Attack
(Insert facepalm here.)azonicrider wrote:I thought about it, but didn't try it, as it just seemed crazy.
There are a lot of things out there much crazier than that and yet they are still true.
Help us help you: attach a .love.
Re: Lizard Attack
yeah like meatspinRobin wrote:(Insert facepalm here.)azonicrider wrote:I thought about it, but didn't try it, as it just seemed crazy.
There are a lot of things out there much crazier than that and yet they are still true.
It is still an unexpected string.
Lua is not an acronym.
Who is online
Users browsing this forum: No registered users and 2 guests