Alright im just starting so its very basic.. but what i want it to do is have a loading screen and than show a picture and play a song... heres what i have
++++++++++++++++++++++++++++++++++++++++
pink = Color.new(255, 0, 255)
screen:print(194, 136, "Loading: 0%", pink)
screen.flip()
background = Image.load("background.png")
screen:clear()
screen:print(194, 136, "Loading: 20%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 40%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 60%", pink)
screen.flip()
boltsnd = Sound.load("song.mp3")
screen:clear()
screen:print(194, 136, "Loading: 80%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 90%", pink)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 100%", pink)
screen.flip()
screen.waitVblankStart(60)
screen:blit(0, 0, background, false)
screen.waitVblankStart()
screen.flip()
boltsnd:play()
screen.waitVblankStart(240)
screen.flip()
Music.volume(128)
while true do
screen:blit(0, 0, background, false)
end
++++++++++++++++++++++++++++++++
I have the background.png, and song.mp3 files saved in the same folder that i saved INDEX.lua...which is in applications in a folder called TESTING....what there is wrong?
--Stretch Arm-Strong
((((btw while i was playing CS:S i was refferred here by another guy and he said that you guys were really nice and could help me out....so stick to his word))))
What did i do wrong?
Moderators: Shine, Insert_witty_name
I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/
Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant>Shine wrote:I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/
Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
Proud Dvorak User
US 1.5 PSP (Original)
US 1.5 PSP (Original)
-
- Posts: 17
- Joined: Mon Oct 03, 2005 5:00 am
i think thats why ogg came about.Zenurb wrote:This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant>Shine wrote:I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/
Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod