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.

Dark GDK / sprites and 2D z offset

Author
Message
xchan
10
Years of Service
User Offline
Joined: 9th Feb 2014
Location:
Posted: 9th Feb 2014 17:50
I am wondering how do i manipulate Z priority for both sprites and 2D images like boxes.

What i want is my background sprite at the back of my 2D box, and my player sprite in front of my 2D box, any one knows how can I do this?

Currently developing: Verticity 2D
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 10th Feb 2014 01:43
You can't do that I believe.
The obvious solution is to make your box a sprite as well. Sprite priority can be set by dbSpritePriority(int spriteID, int priority).


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2024-11-18 21:28:27
Your offset time is: 2024-11-18 21:28:27