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.

2D All the way! / Clear one loop to move to another Please Help

Author
Message
old rinkly
21
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 27th May 2005 06:08
I created a 2D game in \"DB which run perfectly well until I tried it in DBPro and all hell seemed to break loose.
I have spent weeks trying to revise it without success.
The main body runs in a \" Repeat Until\" loop.
Then I want it to clear everything, delete or hide sprites, clear the screen etc.
Then open up another background with score etc and a \"Y\" \"N\" input to run again or exit.
No prob in in DB, but in DBPro at the end of the first loop, all graphics freeze and refuse to clear and so the graphics for the final score loop do not come on.
I know it has gone into the second loop because the response \"Y\" \"N\" works even though the graphics and input is not on display.
Why can\'t I clear the first lot of graphics and sprites and replace them with the next lot of graphics etc?????
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 27th May 2005 22:39
1 major difference between DBC and DBPro is the DX version, but more importantly DX8 stopped using 2D technology as much as DX7 - so now DBPro's sprites are actually 3D objects, that's why there's no pixel perfect collision now.

If your using sprites, your using 3D, so the 3D backdrop is affecting your screen, try avoiding the sprite commands, like replace them with paste image - or alternatively you could try turning the backdrop off so that the 3D is not wiped out (and it won't wipe out the 2D either).


Van-B

old rinkly
21
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 28th May 2005 06:15
Thanks Van B will have a look at that.

Login to post a reply

Server time is: 2025-05-17 10:17:06
Your offset time is: 2025-05-17 10:17:06