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 / Image depth or layer?

Author
Message
Radio Check
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 22nd Aug 2004 07:12
Is there a way in DBC to set certain images or sprites below other images or sprites?

Thanks.

People who put funny sayings in their sig should..... wait a minute.
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 22nd Aug 2004 09:03
About the only way is have a fixed drawing order to your images, and not a lot else. For example;

1. draw underlying things...
2. draw main & secondary characters...
3. draw overlying things....
<sync image to the screen.>

There is no priority other than this, except "draw to front" or "draw to back" as set by these commands. You can issolate sprites by "draw sprites first" where everything gets laid on top on them, but it's only drawing order that really determines when you can, or cannot, go behind or in front of the images.

Any truly great code should be indisguishable from magic.

Login to post a reply

Server time is: 2024-09-22 22:22:27
Your offset time is: 2024-09-22 22:22:27