Code: Select all
function load()
androidsplash = love.graphics.newImage("UI/androidsplash.png")
androidsplash:setCenter(0, 0)
android_splash = love.graphics.newAnimation(androidsplash, 800, 500, 0.2)
android_splash:setMode(love.mode_once)
splashtime = 0
end
function draw()
love.graphics.draw(android_splash, 400, 250)
end
function update(dt)
android_splash:update(dt)
splashtime = splashtime + 0.01
if splashtime > 4 then
love.filesystem.require("menu.lua")
load()
end
end
It loads up perfectly - the music starts playing and I see my main menu - however, keys do not seem to respond - so I'm guessing it's refusing to update? As mentioned the menu.lua functions perfectly when it acts as main.lua - what could be the problem here?
I use 'function load()' etc in my menu.lua - I did read it may be necesary to do 'load() = function' - any truth to this?