trouble with keyreleased( key )
Posted: Wed Feb 25, 2009 4:02 am
Hi every one, i'm new to programming at all, and to LOVE in particular. i've got code
the function work when any key pressed, i need it to work when "space" key pressed, what must i do?
Thanks.
Code: Select all
function keypressed(...)
if key ~= love.key_space and fire == 0 then
love.audio.play( pew )
fire = 0.01
table.insert(bullets, {x = x, y = y-15})
end
Thanks.