#83150 - Valmond - Sat May 13, 2006 11:52 am
Hi !
I'v spent some days going through the DS part of the forum and
lernt quite a lot (yep, I'm a noob to DS programming).
I'v also gone through some tutorials and a lot of raw data
found on a lot of sites...
So I have (finally :p) a text/tile background up and
running, tileset, palette and mapdata loaded, youpi !
I'v just got two (minor I hope) problems :-)
The first is just that there are no transparent pixels...
do you need to set this somewhere(I bet you do) or shouldn't
it be colorindex 0 in the palette or ... well how do you decide
which colorindex should be transparent on a text/tile bg ?
The second problem is different; I would like to use the text/tile
background to make a scroller.
Thought that I should scroll sub-tile sized lengths (0..7) with the
registers (BG0_X0 and BG0_Y0 etc) and move the mapdata
for the rest.
Example :
Scroller is in position 0
Moving to the right is just loading BG0_X0 with 1,2,3....7
then move the mapdata itself one step to the right and restart BG0_X0
with 0,1,2....7 etc. (between VBlanks offcourse)
This however creates artefacts on the sides as the map is
exactly the same size as the screen (32 tiles width) :
([Images not permitted - Click here to view it])
At the left some pixels actually comes from the tiles on the right
side of the screen/map.
So my question is; can you make a(slightly) bigger map
or is text/tile mode just for static backgrounds ?
Cheers & thanks !
/Valmond
I'v spent some days going through the DS part of the forum and
lernt quite a lot (yep, I'm a noob to DS programming).
I'v also gone through some tutorials and a lot of raw data
found on a lot of sites...
So I have (finally :p) a text/tile background up and
running, tileset, palette and mapdata loaded, youpi !
I'v just got two (minor I hope) problems :-)
The first is just that there are no transparent pixels...
do you need to set this somewhere(I bet you do) or shouldn't
it be colorindex 0 in the palette or ... well how do you decide
which colorindex should be transparent on a text/tile bg ?
The second problem is different; I would like to use the text/tile
background to make a scroller.
Thought that I should scroll sub-tile sized lengths (0..7) with the
registers (BG0_X0 and BG0_Y0 etc) and move the mapdata
for the rest.
Example :
Scroller is in position 0
Moving to the right is just loading BG0_X0 with 1,2,3....7
then move the mapdata itself one step to the right and restart BG0_X0
with 0,1,2....7 etc. (between VBlanks offcourse)
This however creates artefacts on the sides as the map is
exactly the same size as the screen (32 tiles width) :
([Images not permitted - Click here to view it])
At the left some pixels actually comes from the tiles on the right
side of the screen/map.
So my question is; can you make a(slightly) bigger map
or is text/tile mode just for static backgrounds ?
Cheers & thanks !
/Valmond