You need to had a statement where if X is press it will do this, You can do that...Code:blue = Color.new(0, 153, 255)
orange = Color.new(155, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0, 0)
---Variables---
Select = 1
MaxSelect = 3
WOC1 = Image.load("images/WoC1.png")
WOC2 = Image.load("images/WoC2.png")
WOC3 = Image.load("images/WoC3.png")
---Loop----
while true do
pad = Controls.read()
screen:clear()
--Player decision---
if pad:down()
Select = Select + 1
end
if pad:up() then
Select = Select - 1
end
--Menu Options---
if Select == 1 then
screen:blit(0,0,WOC1)
screen:flip()
end
elseif Select == 2 then
screen:blit(0,0,WOC2)
screen:flip()
end
elseif Select == 3 then
screen:blit(0,0,WOC3)
screen:flip()
end
if Select <= 0 then
screen:blit(0,0,WOC3)
screen:flip()
end
elseif Select => 4 then
screen:blit(0,0,WOC1)
end
screen:flip()
screen.waitVblankStart()
end
-= Double Post =-
=> means "equal" or "greater than"Zitat:
Zitat von superbatxs
<= means "equal" or less than"
"elseif" is a good idea when you have alot of if statements.
