DSLua Community
Welcome, Guest. Please login or register.
May 21, 2012, 07:53:34 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Text and Backgrounds... « previous next »
Pages: [1]
Author Topic: Text and Backgrounds...  (Read 1284 times)
sylus101
Waxing Crescent
**
Posts: 68



« on: March 17, 2007, 08:58:53 PM »

Hello everyone...

When I have text printing where there is a background loaded, it acts all funky, showing a box where the text would be and completed blanking out (all white) the background that was there.

Can text be written over a background correctly? I've got a lot of rethinking to do with the game if not.

As a side note, and part of a solution if this is really the case, if I use the one palette for all sprites trick, does that mean I can basically have unlimited sprites?
« Last Edit: March 17, 2007, 10:20:10 PM by sylus101 » Logged
Jeremysr
First Quarter
***
Posts: 215



WWW
« Reply #1 on: March 17, 2007, 11:04:54 PM »

You should've posted your code, but I think I know what the problem is. It must be how you are using Screen.Initialize(). When you want to init two background (text background & tiled background) you need to initalize both of them in Screen.Initialize(). I'm guessing you have this code:

Screen.Initialize( 1, BGTopText )
Screen.Initialize( 1, BGTopTile )

When it should be:

Screen.Initialize( 1, BGTopText, BGTopTile )

Since the BGTopText is first in the function, it will place it on top of the BGTopTile background.
Logged
sylus101
Waxing Crescent
**
Posts: 68



« Reply #2 on: March 18, 2007, 12:10:09 AM »

Since each tutorial kinda shows one thing at a time... yea you hit the nail on the head. I'll post the code for sure next time.

Thanks man!
Logged
suloku
New Moon
*
Posts: 8


« Reply #3 on: June 19, 2007, 09:44:00 AM »

Then what exactly happens if the screen is initialized separately? Does it all get messed up or it just follows a defined order like the sprites?
Logged
daltonlaffs
First Quarter
***
Posts: 189


Freaking Insane


WWW
« Reply #4 on: June 19, 2007, 10:05:33 AM »

Depends on exactly what you're talking about, really. In this case, initializing the text and then the background separately will glitch the fuck out of the text output.
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Pages: [1]
« previous next »
    Jump to: