keyboard glitch
Alrighty so whenever I use the keyboard.press command it does not work, in more context copy and paste this command into a new project
init = function() space1 = true space2 = false space3 = false space4 = false end
update = function() if space1 == true then if keyboard.press.A then space1 = false space2 = true space3 = false space4 = false end end if space2 == true then if keyboard.press.A then space1 = false space2 = false space3 = true space4 = false end end if space3 == true then if keyboard.press.A then space1 = false space2 = false space3 = false space4 = true end end if space4 == true then if keyboard.press.A then space1 = true space2 = false space3 = false space4 = false end end end draw = function() screen.fillRect(0,0,screen.width,screen.height,"#FFF") text() end
text = function() if space1 == true then screen.drawText("1",0,0,90,"rgb(0,0,0)") end if space2 == true then screen.drawText("2",0,0,90,"rgb(0,0,0)") end if space3 == true then screen.drawText("3",0,0,90,"rgb(0,0,0)") end if space4 == true then screen.drawText("4",0,0,90,"rgb(0,0,0)") end end
basically what it does is its just ignoring the ".press" part of the command, ive double checked other characters and it wont work