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 / how do i set 1 sprite in front of another??

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 3rd Feb 2006 03:33 Edited at: 3rd Feb 2006 03:34
title says all. i want to set different sprites in front of the others.

how do i do this?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 3rd Feb 2006 04:10
If you have Pro you can use the "set sprite priority" command to set the order the sprites are drawn to the screen.

Quote: "SET SPRITE PRIORITY
( Pro )

This command will set the relative priority of the specified sprite. All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last. You can specify a unique priority value for each sprite creating an order of drawing for every sprite in your program.

SYNTAX
SET SPRITE PRIORITY Sprite Number, Priority
"


If you don't have Pro the sprite order is the order the sprites are created (the first sprite made will always be under the next one made).


David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 3rd Feb 2006 14:38
thanks! i missed that command.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 4th Feb 2006 00:24
Np... yeah it's hard to spot commands sometimes.


Login to post a reply

Server time is: 2024-11-27 05:51:43
Your offset time is: 2024-11-27 05:51:43