here is the function in which this happens
Code: Select all
function controlSel()
pad = Controls.read()
if pad:down() then
selY = selY + 2
if selY > 257 then
selY = 257
end
end
if pad:up() then
selY = selY - 2
if selY < 0 then
selY = 0
end
end
if pad:left() then
selX = selX - 2
if selX < 0 then
selX = 0
end
end
if pad:right() then
selX = selX + 2
if selX > 465 then
selX = 465
end
end
if pad:triangle() then
units[1].angle = 90
end
if pad:cross() then
units[1].angle = 270
end
if pad:circle() then
units[1].angle = 0
end
if pad:square() then
units[1].angle = 180
end
end