Advertisement

Displaying a picture while the game starts?

Started by October 12, 2000 02:46 AM
3 comments, last by Nazrix 24 years, 2 months ago
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
Advertisement
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.
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.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi

This topic is closed to new replies.

Advertisement