gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Text on sprites

#101679 - Lupus - Thu Sep 07, 2006 11:55 am

Hi at all,

I'm new on this board and have a question I searched for the last hours but found absolutly nothing.

I want to show text on a sprite but the sprite is shown over the text. Is it possible to change the order sprites and texts are painted on the screen? If not is there a possibility to create movable fields with text?

I'm coding with the PALib.

Greats
Christian

#101684 - tepples - Thu Sep 07, 2006 2:11 pm

Increase the sprite's priority field or draw it earlier/later to push it down in the stack. I don't know how to do it in PA_LIB, so I can only give generalities.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#101743 - sumiguchi - Thu Sep 07, 2006 8:46 pm

I guess you didn't search the PAlib forums...this should help.
http://teamnnc.free.fr/phpBB2/viewtopic.php?t=1106&highlight=text+priority

#102158 - Lupus - Mon Sep 11, 2006 9:58 am

thank you, I got it. Had to do with the priorities as tepples wrote.