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 Professional Discussion / Need help clearing images copied to Image 0

Author
Message
Moriar
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location:
Posted: 24th Aug 2003 22:29
I am coping images to Image 0 for a menu system. Everything was working out great until I tried to find a way to clear the screen to begin a game. The images would not go away. Has anybody had this problem or know how to clear the image from the screen?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 24th Aug 2003 22:50
By image 0, do you mean the screen ?


IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Aug 2003 23:02
It sounds like you may be using sprites to display your menus.

If so, you'll either have to delete them, move them offscreen, or hide them, or change the way that you display them in the first place (hint: paste image).
Moriar
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location:
Posted: 25th Aug 2003 00:51
Yep, Image 0 is the screen. I'm not using sprites. For the life of me I cannot figure out how to clear Image 0. I tried CLS, DELETE IMAGE 0, ect.. and nothing. I had thought about trying to copy a black image to the screen and use transparency but that just doesn't sound very efficient.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Aug 2003 00:55
Well, you cant clear image 0 - its gives an error message if you try and so something with it. So, you need something like :

SET CURRENT BITMAP 0
CLS 0


Moriar
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location:
Posted: 25th Aug 2003 02:28
That did the trick. Thanks a lot for your help.

Login to post a reply

Server time is: 2026-07-24 00:18:41
Your offset time is: 2026-07-24 00:18:41