Code: Select all
function love.load()
x = 0
end
function love.update()
while x do
x = x + 1
end
end
*the window freezes and stops responding
Code: Select all
function love.load()
x = 0
end
function love.update()
while x do
x = x + 1
end
end
Code: Select all
while x do
x = x + 1
end
Code: Select all
local myCondition = true
while myCondition do
while true do
while x do
x = x + 1
if x == 10 then
break -- break out of the 'while x do' loop
end
end
break -- break out of the 'while true do' loop
end
myCondition = false -- break out of the "while myCondition do" loop eventually, because the condition will return false
end
Code: Select all
x = 0
while x < 10 do
x = x + 1
end
Code: Select all
x = 0
repeat x = x + 1 until x == 10
Please attach the .love file with your error.
Code: Select all
function ccol(a)
if a.y + a.height == 600 then
return true
else
return false
end
end
function love.update(dt)
while not ccol(q,c) do
yspeed = yspeed + a * dt
a = a^10 * dt
end
end
Users browsing this forum: No registered users and 12 guests