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 / 2D Sprites in front of 3D objects

Author
Message
Manga Tiger Boy
14
Years of Service
User Offline
Joined: 24th Aug 2009
Location:
Posted: 5th Oct 2010 05:01
I'm having an issue . I need an animated sprite to play in front of a 3D playfield, but it keeps loading the sprites behind everything! How can I fix this??

Join the dark side. We have cookies!
Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 5th Oct 2010 06:44 Edited at: 5th Oct 2010 06:44
Check the dbpro help file there is something in the core cammands about that I cant remember what is is probably something like :

dbDrawSpritesToFront

or

something like that..Ill just check hold on...

dbDrawSpritesFirst

there you go sir Tiger B

Ooops I mean last not first hahahaha
Manga Tiger Boy
14
Years of Service
User Offline
Joined: 24th Aug 2009
Location:
Posted: 6th Oct 2010 22:54
Thanks, Benjo! I had 2 problems going on here;

First, as said, when I simply tried loading the sprite as a single frame - not animated - it was behind everything.

Second, when I made an animated sprite I said size 300x27 - I should have had 1x6.

...And the world is all right again.

Join the dark side. We have cookies!
Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 6th Oct 2010 23:01
I liked using a plane instead of sprites, more flexible and you can perform 3d transformations as well.
Manga Tiger Boy
14
Years of Service
User Offline
Joined: 24th Aug 2009
Location:
Posted: 6th Oct 2010 23:36
Interesting ... But that takes more time to load, and my project is rather speed-critical. I might just use that later, though ....

Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 7th Oct 2010 00:06
Yeah, you can use Sparky's collision with it to, so if you need to create menu items, to me it's easier to use 3dplanes and texture them
But I can definitely see the speed issue.

Login to post a reply

Server time is: 2024-06-30 11:03:20
Your offset time is: 2024-06-30 11:03:20