whats the code?sounds like you have too many or not enough "end" statments
also I was messing around with the code for the analog stick so i figured id post it here incase someone learning how to use the analog stick wants to use it
Code:white = Color.new(255, 255, 255)
while true do
screen:clear()
pad = Controls.read()
analogX = pad:analogX()
analogY = pad:analogY()
if pad:start() then
break
end
--Up/Down/Left/Right
--Right
if analogX > 32 and analogY > -40 and analogY < 40 then
screen:print(200, 100, "Right", white)
end
--Left
if analogX < -32 and analogY > -40 and analogY < 40 then
screen:print(200, 100, "Left", white)
end
--Down
if analogY > 32 and analogX < 40 and analogX > -40 then
screen:print(200, 100, "Down", white)
end
--Up
if analogY < -32 and analogX < 40 and analogX >-40 then
screen:print(200, 100, "Up", white)
end
--Center
if analogY > -32 and analogY <32 and analogX < 32 and analogX > -32 then
screen:print(200, 100, "Center", white)
end
--Diagnals
--Up/Right
if analogY < -32 and analogX > 40 then
screen:print(200, 100, "Up and Right", white)
end
--Up/Left
if analogY < -32 and analogX < -40 then
screen:print(200, 100, "Up and Left", white)
end
--Down/Right
if analogY > 32 and analogX > 40 then
screen:print(200, 100, "Down and Right", white)
end
--Down/Left
if analogY > 32 and analogX < -40 then
screen:print(200, 100, "Down and Left", white)
end
screen.flip()
end
