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 / Problems with 2D layering

Author
Message
MedianHansen
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 19th Mar 2009 11:45
Okay... I'm very new to DarkBasic, i have used other langagues before... but not this... alright, so i'm working on my first project in this langauge, as i stumple on a problem, i was trying to use the box command, like this:

Now... it draws the box.. the only problem is, it's drawn beneath the sprites... so now i'm trying to find a way, to tell Darkbasic, to change the "Layers" and draw it above the sprite, but i can't find any :S
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Mar 2009 18:32 Edited at: 19th Mar 2009 18:33
try pasting the sprite to the screen when you need to see it.



Dark Physics makes any hot drink go cold.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 19th Mar 2009 18:46
i think draw sprites first is what you're looking for.


Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Mar 2009 21:29
I personally would do what HowDo said. Make your sprite, hide it, and paste it where you want it



Login to post a reply

Server time is: 2024-11-25 10:42:33
Your offset time is: 2024-11-25 10:42:33