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.

DarkBASIC Discussion / Sprite on top of sprites

Author
Message
Bit Rat
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Double Dungeons- dungeon 21
Posted: 3rd Jun 2005 12:47
does anyone know how to place a sprite on top of another sprite?
(say a small one on top of a larger one?)
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Jun 2005 23:21
SET SPRITE PRIORITY
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.

BatVink
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 3rd Jun 2005 23:44
BatVink,

Isn't that a DarkBasic Professional command?


+NanoBrain+
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 4th Jun 2005 00:45
Ya, it must be because it doesn't compile in DBC. To do it in DBC you just have to keep track of the order you use the Sprite command in. For exmaple, lets say you were making some kind of target game or something, you would first use the Sprite command for the target and THEN use the Sprite command for the crosshair, gun, etc...

The last Sprite you use will go over all the other sprites.

Bit Rat
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Double Dungeons- dungeon 21
Posted: 9th Jun 2005 23:11
thanks for the info

Login to post a reply

Server time is: 2025-05-22 20:36:51
Your offset time is: 2025-05-22 20:36:51