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
Home
Help
Search
Login
Register
DSLua Community
|
DSLua - Best scripting language for Nintendo DS
|
Need Help?
|
Text and Backgrounds...
« previous
next »
Pages:
[
1
]
Print
Author
Topic: Text and Backgrounds... (Read 1284 times)
sylus101
Waxing Crescent
Posts: 68
Text and Backgrounds...
«
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
Re: Text and Backgrounds...
«
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
Re: Text and Backgrounds...
«
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
Re: Text and Backgrounds...
«
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
Re: Text and Backgrounds...
«
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
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
DSLua - Best scripting language for Nintendo DS
-----------------------------
=> News and Announcements
=> Examples/Tutorials
=> Home-brew/Hacks/Games/Projects
=> Hardware and Equipments
=> Need Help?
=> Bugs & Suggestions
-----------------------------
General DS Programming Chats
-----------------------------
=> Code Hashing
=> Chat Room
=> Test Area
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media