Displaying a picture while the game starts?
There might be a real obvious answer that I am missing, but is there a simple trick to show some sort of picture while the game is initalizing?
It takes the game about 30 seconds before it actually starts.It is just a 2d tile-based game but I assumed that it''s ''cause it has pictures to open and has to lock and unlock surfaces, etc. But is there a way to show a picture before the game loads or something?
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
yeah, its easy
just make the loading bitmap the first bitmap to load, then display that in the init code
if you want a loading bar, its a bit harder, the only way i can think of would be to have a bitmap of the final loaded bar, and then keep incrementing the final amount your displaying each time you load a bitmap.
e.g:
..load the bitmap for the loading screen
display it
...do other init stuff:
load some tiles..
increment the loading bar amount
load something else
increment it again..
i know thats probably not the best way, but still, hope it helps
just make the loading bitmap the first bitmap to load, then display that in the init code
if you want a loading bar, its a bit harder, the only way i can think of would be to have a bitmap of the final loaded bar, and then keep incrementing the final amount your displaying each time you load a bitmap.
e.g:
..load the bitmap for the loading screen
display it
...do other init stuff:
load some tiles..
increment the loading bar amount
load something else
increment it again..
i know thats probably not the best way, but still, hope it helps
Ah...Thanks Quantum...
I thought I couldn''t load it in the init code because the surfaces wouldn''t be ready or something...
I should have just tried it
that''s cool...thanks!
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
I thought I couldn''t load it in the init code because the surfaces wouldn''t be ready or something...
I should have just tried it
that''s cool...thanks!
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
oh yeah... i forgot to mention, make sure its after the code that sets up ddraw and creates all your surfaces, or you''ll have big problems
Yep I made that mistake the first time, but I corrected it. It looks really nice thanks again
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement