Code:
StartNotHit = true
i = 0
GoingLeft = true
while StartNotHit do
pad = Controls.read()
if pad:start() then StartNotHit = false end
screen:clear()
screen:print(200 + i, 135, "Hello World", Color.new(0,255,0))
if GoingLeft == true then i = i + 1 end
if GoingLeft == false then i = i - 1 end
if i == 100 then GoingLeft = False end
if i == 1 then GoingLeft = True end
screen:flip()
end
I have no idea what's wrong with it. Hello World just sits there not moving :\
Obviously I fucked up my logic or something. Any help?