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 > noob question- textPrint(x,y,scroll_left_right)

#124762 - nimaranjbar - Sun Apr 08, 2007 8:44 am

Hello all,

I was wondering if there is a way to put a text at x,y position of the screen. i.e printText(10,10) to put the text at location 10,10.

Also any ideas of how commercial games use transition effects on texts?
i.e printText(10,10,left_right) to place text @10,10 using left-right fade effect?

The only solution to display text I've found is using console iprintf, what are other solutions?

Thanks in advance.

#124767 - tepples - Sun Apr 08, 2007 1:37 pm

nimaranjbar wrote:
I was wondering if there is a way to put a text at x,y position of the screen. i.e printText(10,10) to put the text at location 10,10.

There are control codes that you can insert to move the console cursor.

Quote:
Also any ideas of how commercial games use transition effects on texts?
i.e printText(10,10,left_right) to place text @10,10 using left-right fade effect?

Try printing one character at a time, waiting for 2 vblanks after each character.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#124772 - nimaranjbar - Sun Apr 08, 2007 2:51 pm

That answered my question. Thank you.