Procedural next level crushing!
Posted: Fri Aug 22, 2014 2:19 am
Hello again!
Guys im ina problem with my next level, its crushing the game ... i tryed some stuff but the problem persists and since im not professional i decided o ask for help.
the problem is basic here:
the game starts normal and create the room since nextlevel starts as true.
but when i reach the stair, that should make nextlevel = true then game crushes
Ty for any help
Guys im ina problem with my next level, its crushing the game ... i tryed some stuff but the problem persists and since im not professional i decided o ask for help.
the problem is basic here:
Code: Select all
function love.update(dt)
if nextlevel == true then
createroom()
nextlevel = false
end
end
but when i reach the stair, that should make nextlevel = true then game crushes
Ty for any help