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 / Copy bitmap 1,0 problem

Author
Message
Venatusio
12
Years of Service
User Offline
Joined: 6th Mar 2012
Location:
Posted: 20th Mar 2012 09:12
I have been staring at the screen for a while and cannot work out why this isn't working, so I an going to have a break and figure someone here will know in an instant.



What I am trying to do is paste images onto bitmap 1 and then copy it over to 0.

The code as it is works - it reads the imagenumber(to get the right tile) from the array and draws the map to the screen. But as soon as I change set current bitmap to 1 and then uncomment the copy bitmap 1,0 and sync command I just get a blank screen.

I have obviously misunderstood a concept here or my code sucks :-(

All help greatly appreciated.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Mar 2012 10:45
It looks like you are doing it backwards, and putting the image on bitmap 0.

Venatusio
12
Years of Service
User Offline
Joined: 6th Mar 2012
Location:
Posted: 20th Mar 2012 11:44
I got it, it was in fact working but the sync in the loop made it draw really slow.

So it was drawing to bitmap 1 but took about 30 seconds to draw it all.

Staring at a blank screen I was giving up on it and hitting esc before it got to the copy bitmap 1,0

Once I removed the sync out of the loop it came up instantly.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Mar 2012 17:43
give this a try, what it does is makes a bitmap 1, then pastes everything you wanted to it, does a sync to make everthing stick then copies it to bitmap 0, reset the bitmap to 0, where you should now see what you done.



Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-23 20:46:44
Your offset time is: 2024-11-23 20:46:44