HELP i dont now whats going on im using the Immediate Mode GUI libary
and if you press the button code you can change the gravity up but down does not work so plusgravity works but mingravity button does not and i dont no why
init = function() Quick.init() map = Quick.addMap("map", 900, 0, 2000, 320) playerinit() playing = false end
update = function() Quick.update() playerupdate() touchKeys.update()
if mouse.press and playing == false then playing = true end
if mouse.press and dead == true then Quick.remove(player) flying = false player.x = 10 player.y = 10 player.physics = true player.solid = true dead = false playerinit() end
audio.playMusic("space", 1) end
draw = function() if playing == true then Quick.draw() touchKeys.draw() ui()
if dead == true and flying == false then
screen.clear("gray")
screen.drawText("Haha you lose STUPID! click to restart", 0, 0, 25, "red")
end
if win == true and flying == false then
screen.clear("gray")
screen.drawText("You won!!!! :) click to restart", 0, 0, 29, 29, "green")
end
elsif playing == false then screen.clear("gray") title = screen.drawText("Bob maker", 0, 50, 30, "blue") clicktext = screen.drawText("Click to start", 0, 0, 15, "green") jensgamestudios = screen.drawText("JensGameStudios", 0, 80, 20, "white") screen.drawSprite("logojens", 82, 80, 20, 20) end end