splodger15
February 7th, 2007, 18:19
I have a Gif image but is it possible to use that in Lua. As i would like it used as just a splash screen with press start to continue on it. Here is the image i would like to use.
Thanks
yaustar
February 8th, 2007, 23:07
No you can't. LuaPlayer doesn't support animated GIF files since it is a closed format now.
gunntims0103
February 8th, 2007, 23:19
I did something like that using 2 images in soras adventure, the code went like this
--load 2 images--
Splash1 = Image.load("backgrounds/intro1.png")
Splash2 = Image.load("backgrounds/intro2.png")
function images() ------Right Animation
Tim = Tim + 1
if Tim>= 100 or Tim<=0 then
Tim = 0
end
if Tim==5 then
Splash = Splash1
end
if Tim==50 then
Splash = Splash2
end
end
-----This code loads the splash screen, im using 2 images------
while true do
pad = Controls.read()
images()
if pad:start() then
loadA()
end
screen:blit(0,0,Splash)
screen.flip()
screen.waitVblankStart()
end
This is used to do a 2 image animation start screen....
splodger15
February 9th, 2007, 08:22
Ok thanks for the help Gunn and yaustar
:thumbup: ;)
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.