Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Loading image

Author
Message
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Mar 2008 17:21
Hi, all!

I having a game with a menu, and when you start the game it takes some time to load. So what i want is a loading image.
I used draw to front,load bitmap,get image,paste image,delete bitmap for loading and drawing it.
The image is 640,480 pixels.
But the problem is, it doesnt drop every step.
I know i can do a loop, for it. But then it wouldnt load.
I also know i can do the gosub command, but also then it wouldnt load.

How do i make the loading image draw to front while the main game engine is loading?

---:GAME MAKING IS BEST:---
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 12th Mar 2008 17:45
sync off: sync rate 0
set display mode 640, 480, 32

load image "image.jpg", 1
paste image 1, 0, 0
sync

...
...
...continue loading...
...
...

That should slap the image up and leave it there until you do another "sync" command.

bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Mar 2008 17:57

Thanks!

---:GAME MAKING IS BEST:---

Login to post a reply

Server time is: 2026-07-06 14:40:28
Your offset time is: 2026-07-06 14:40:28