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! / Sprite overlapping

Author
Message
mr joe
21
Years of Service
User Offline
Joined: 12th Aug 2004
Location: Edinburger, Scotland. DBC
Posted: 23rd Aug 2004 02:24
I am making a 2d platformer, but could anybody help me, how do i control which objects are infront of others. I have tried changing the order in which they are created, but it didnt help and i dont know what to do now.

Thanks.
someone namedlink
21
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: Dream Planet
Posted: 24th Aug 2004 06:00
do the following:
set sprite proirity sprite number,priority
the priority is an integer
a sprite with high priority is shown before a sprite with a lower one

DIV/DBP-coder
mr joe
21
Years of Service
User Offline
Joined: 12th Aug 2004
Location: Edinburger, Scotland. DBC
Posted: 27th Aug 2004 19:28
Thanks link, that looks just what i need.
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 3rd Sep 2004 01:58
As a matter of interest for those with DB only, who don't have the "Priority" command, you will find that is the orderin which the sprites are first called that sets the priority, see code.Oldwrinkly

OldWrinkly
mr joe
21
Years of Service
User Offline
Joined: 12th Aug 2004
Location: Edinburger, Scotland. DBC
Posted: 3rd Sep 2004 18:08
thats helpful old wrinkly, i dont have pro which i forgot to mention

thanks all

Login to post a reply

Server time is: 2026-06-11 17:33:55
Your offset time is: 2026-06-11 17:33:55