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! / How do you choose which sprites appear "above" others?

Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 19th Mar 2003 22:16
In my space game (
Bolt of Bolt Software Productions
Easily Confused
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 19th Mar 2003 22:45
If you're using DBPro then I would suggest you investigate the Set Sprite Priority command

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Years of Service
User Offline
Joined: 18th Mar 2003
Posted: 20th Mar 2003 01:34
Heh, I just draw the ones you want ontop around the bottom.


sprite 2 would be on top there because it was send through the code second.

Because it goes from top to bottom, the code would have seen to draw sprite 1, then on the next line it would see to draw sprite 2, so it would draw sprite 2 over sprite 1.

But thats just the way i got used to doiing things in C++, there might be a better way in DBPro

Login to post a reply

Server time is: 2024-02-28 15:45:24
Your offset time is: 2024-02-28 15:45:24