Flash screen while loading

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
ai3gtmc30
Posts: 3
Joined: Fri Mar 16, 2007 9:15 pm

Flash screen while loading

Post by ai3gtmc30 »

hi can anyone help how to flash a screen while loading my app? lets say something like ill put a credits and the name of the app(image file) in 3 soconds then dissappear?
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

Code: Select all

function VSH_SplashScreen(image, time)
	local DebugTimer = os.clock()
	screen:clear(Color.new(0,0,0))
	screen:blit(0, 0, image)
	screen.waitVblankStart()
	screen.flip()
	while true do
		local CHECK_TIME = os.clock() - DebugTimer
		
		if (CHECK_TIME >= time) then
			break
		end
	end
end
Post Reply