love.timer.sleep() dosn't let images load!
Posted: Sun May 12, 2013 6:45 am
Hi, a quick question,
I am trying to create a splash screen, and this is the code I have:
splash1 = love.graphics.newImage( "/images/splash1.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash1, 0, 0)
love.timer.sleep(2)
splash2 = love.graphics.newImage( "/images/splash2.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash2, 0, 0)
love.timer.sleep(2)
splash3 = love.graphics.newImage( "/images/splash3.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash3, 0, 0)
love.timer.sleep(2)
However, when I try and do this (in the love.load() function,) it just dosn't show the images at all! It'll wait the time, but just dosn't show them! Any help? Thank you so much!
I am trying to create a splash screen, and this is the code I have:
splash1 = love.graphics.newImage( "/images/splash1.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash1, 0, 0)
love.timer.sleep(2)
splash2 = love.graphics.newImage( "/images/splash2.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash2, 0, 0)
love.timer.sleep(2)
splash3 = love.graphics.newImage( "/images/splash3.jpg" )
love.graphics.setColor(255,255,255)
love.graphics.draw(splash3, 0, 0)
love.timer.sleep(2)
However, when I try and do this (in the love.load() function,) it just dosn't show the images at all! It'll wait the time, but just dosn't show them! Any help? Thank you so much!