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.

Coding > Backgrounds again

#8173 - whodoo - Thu Jul 03, 2003 8:06 pm

First I made a nice tileset of about 32 tiles..and then I placed them into a background..it worked fine.. but then I tried to make a tileset of a 240x160 image... (like if I wanna display a image or something)..and when I tried this the whole screen turned orange.. 240x160 is 38400 bytes of data and the VRAM is about 64000 so I guess it doesnt take to much space?..

#8174 - whodoo - Thu Jul 03, 2003 8:09 pm

and as a mather of fact the sprite?s turning invisible when using a such a big tilemap

#8177 - whodoo - Thu Jul 03, 2003 9:49 pm

cuz what I want to do is to make a titlescreen or something..and I need 256 tiles for that but it wont work..

#8179 - niltsair - Thu Jul 03, 2003 9:54 pm

Filling the screen takes 600Tiles (given they're all different)

#8181 - whodoo - Thu Jul 03, 2003 9:57 pm

sorry I ment 600..
but Ive created 600 and converted them to gba..
and then I load them.. but the screen are just getting all orange and the sprites aren?t shown.. but if I only use about 30 tiles then it works...

#8184 - whodoo - Thu Jul 03, 2003 11:10 pm

I mean..I tried using 350 tiles..and that worked great..but when using 600 tiles nothing works..and I can figure out why

#8187 - jcpredator - Fri Jul 04, 2003 1:58 am

First of All, I know its not a good idea to switch modes in a single program but I usually start with mode3 for my titlescreen/logos and the main menu screen. I then switch to a tile mode for the game. I know this probably isn't the best and most efficient way but what I do know is this works and is much simpler. Instead of making 600 tiles all u need to do is create a .bmp or some other 240x160 image and use a converter for it.

-Jc-
_________________
There is no spoon...

#8192 - niltsair - Fri Jul 04, 2003 3:57 am

Why would it be such a bad idea to switch mode? I think it's perfectly legitimate when it make sens and things easier.

#8202 - jcpredator - Fri Jul 04, 2003 12:18 pm

Its a bad idea when used poorly is really what I meant. Obviously if you switch modes a lot then yes it is a bad idea. I also have been told it was a bad idea on irc #gbadev, but I didn't really listen to them lol.
_________________
There is no spoon...

#8210 - igorfromspb - Fri Jul 04, 2003 3:15 pm

Why is switching modes a bad idea? And what do you mean by 'when used poorly'? What's wrong with switching modes when the things you're doing are best done in different modes? Like a tilescreen sidescroller and a bitmap intro pic. Is there any technical reason why switching modes in one game is a bad idea?
_________________
Guns for show, knives for a pro

#8212 - Touchstone - Fri Jul 04, 2003 3:25 pm

There's nothing wrong with changing display mode. I seriously doubt the hardware takes damage by changing mode so what could possibly be so bad. Let's just leave it there, ok. Besides, the original posting didn't even mention switching modes.
_________________
You can't beat our meat

#8220 - Cyberman - Fri Jul 04, 2003 7:03 pm

whodoo wrote:
I mean..I tried using 350 tiles..and that worked great..but when using 600 tiles nothing works..and I can figure out why


I suggest instead of making multiple posts you edit your last reply if you need to clarify something ;) It's just kind of spammy otherwise.

What's the color resolution? which background are you using? what display mode are you in? (IE 0, 1, 2)
how are you loading your tiles sets?
are you setting the tileset begining?
have you set the location where the background data begins?

There innumerable possible variations. When all else fails BE specific :)

Cyb

#8226 - whodoo - Fri Jul 04, 2003 9:31 pm

Im found the problem.. I had forgot to put const infront of the arrays containing my tiledata..sorry bout that

#8241 - Cyberman - Sat Jul 05, 2003 5:47 am

This is the most common error .. almost EVERYONE I see who complains about messed up sprites has this problem, I wish my errors were so simple :)

Cyb

#8245 - tepples - Sat Jul 05, 2003 6:51 am

...and I just added it to the FAQ.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.