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 / Sticky Bitmaps!

Author
Message
Blazer
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 18th Jan 2003 16:37
how do I get a bitmap to stay visible when I press a key. I load the bitmap in the begining then when I press a key I want a bitmap to pop up and stay up even after I let go of the key. Plese help
Furiousuk
22
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 20:37
The screen is bitmap 0.
If you load the bitmap to bitmap 0 then it will appear on the screen.

If you load the bitmap to bitmap 'x' then it will not appear. By using the command "Copy Bitmap x,0" you can move the bitmap to the screen.

However, if you just want a pop-up style image on the screen when you press a button it would be best to use the sprite commands (i.e. load image, paste image, sprite etc.)

* Bear in mind though that if you are clearing the screen with every game loop then you can paste the bitmap to the screen by pressing the key but it will be cleared as soon as you release the key.

Good luck with your project

Login to post a reply

Server time is: 2025-05-14 20:29:29
Your offset time is: 2025-05-14 20:29:29