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 / How would I control the priority of sprites, text, and lines

Author
Message
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 4th Aug 2008 23:24
Ok, I am working on a simple game. I put in a backdrop, a sprite and some text. The backdrop covered the text so I started with dbDrawSpritesFirst. That solved the problem, so i got the backdrop at the back and the sprite and text on the top. That was only for the title screen. When I get into the game, I did a dbLine and that was all the way at the top above the sprites. I want this sprite to be above that Line but I put dbDrawSpritesFirst at the begginning but if i take that out, that it messes up my title screen, the reason why i put that there. I can't do dbSetSpritePriority because it draws the sprites first. I can't do dbDrawSpritesLast because the sprites will cover the line and text. Anyone knows what I can do to fix this?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 5th Aug 2008 18:26
did you try your luck with dbDrawToBack() or dbDrawToFront() ?
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 5th Aug 2008 21:43
Nope. Doesn't seem to work.
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 7th Aug 2008 04:04
so you dont clean up your sprites between title and game?

~you can call me lantz~
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 7th Aug 2008 07:54
What do you mean?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Aug 2008 17:10
so you dont clean up your sprites between title and game?

what he meant is that when the title screen of your game is switched off and the game starts you "delete sprite" the sprites from your titlescreen as you won't need them inside the game
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 11th Aug 2008 00:53
Yea, well actually I Hide them.

Login to post a reply

Server time is: 2024-09-30 03:22:29
Your offset time is: 2024-09-30 03:22:29