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 / What determines a sprite's depth?

Author
Message
Andy Hamm
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: United States
Posted: 28th Nov 2009 02:55
How do I control which sprite appears highest on the screen. For instance in Game Maker I would change the depth variable to make a sprite higher or lower than another sprite.

Please visit my site: http://www.andygames.com/
Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 28th Nov 2009 04:06
Check out the SET SPRITE PRIORITY commands

SET SPRITE PRIORITY Sprite Number, Priority

basically you can set every single sprite to have its own priority and it will then draw them to screen in that order
Andy Hamm
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: United States
Posted: 28th Nov 2009 04:35
Quote: "Check out the SET SPRITE PRIORITY commands

SET SPRITE PRIORITY Sprite Number, Priority

basically you can set every single sprite to have its own priority and it will then draw them to screen in that order"

Thank you - I got it working after checking out the commands!

Please visit my site: http://www.andygames.com/

Login to post a reply

Server time is: 2024-09-28 12:26:40
Your offset time is: 2024-09-28 12:26:40