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.

Newcomers DBPro Corner / bmp code problem. wats worong??

Author
Message
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 30th Jun 2005 07:13
ok i have a maze game and when u get out i want it 2 display a bmp called credits1.bmp (i wont use the number in the end but i have several versions at the moment). and whee i get 2 tht position the bmp appears for a split second then disappears. how can i get it 2 stay there for a period of time or until somebody presses a key? im using DBC

jon
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 30th Jun 2005 08:03 Edited at: 30th Jun 2005 08:05
Attaching source doesn't work when you posts have to be approved.

Post you code between [code[/b]] [/code[b]] tags.

I guess you just need to delay the program while the bitmap is displayed.
Try the WAIT KEY command after displaying the bitmap, it will halt execution of the program until the user presses a key.
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 30th Jun 2005 13:31 Edited at: 30th Jun 2005 13:32
Your probably still in the loop. Load that as an image and right before the last sync, use the paste image command. That way your program can still process other information. Try to avoid wait and sleep when ever possible.

Just my opinion though.

Formerly The Fixxer
http://www.xiemsoft.cjb.net
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 30th Jun 2005 17:42
yes it is in the loop and i dont want the game to continue really the code was something like:


ok so whne u get to that position the image appears for that split second then it dissapears and aits for a key press then it ends. i want the bmp to stay up there until it quits. and yes this code is inside the loop
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 1st Jul 2005 01:56 Edited at: 1st Jul 2005 02:00
Are you using sprites or 3d elsewhere in the program? Could be the backdrop is being drawn over the top of the image.
You could display the image as a sprite or on a 3d plane.

Or you could try just keep pasting the image until the user presses a key.

nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 1st Jul 2005 06:02
ahh its ok now but thx. i just used it as a sprite instead of a bmp

Login to post a reply

Server time is: 2024-09-23 23:21:02
Your offset time is: 2024-09-23 23:21:02