Scrolling Game Development Kit Forum

SGDK Version 1 => General Discussion => Topic started by: bat on 2005-10-29, 09:34:44 PM

Title: tile set editing
Post by: bat on 2005-10-29, 09:34:44 PM
what's the difference between black and transparent?
Title: tile set editing
Post by: durnurd on 2005-10-29, 11:45:38 PM
The transparent color of the tileset is whatever color is in the top-left corner of the top-left tile of the tileset (i.e. the first pixel).  Since the tileset defaults to black, this is the transparent color.  However, this can be any color you want.
Title: tile set editing
Post by: bluemonkmn on 2005-10-31, 05:54:30 AM
More info about transparency in case you don't know:
The transparent color is the color you can see through on transparent layers.  You can use it to make multiple layers and allow the foreground layers to let you see through to the background layers.  Areas in a foreground layer that use the transparent color will show through to the background layer.  But in order for this to occur, you must set the foregound layer to be drawn as a transparent layer by using the checkbox. If a layer is not set to be transparent, then its transparent color will be ignored and it will simply draw the whole view opaquely, covering up whatever is behind it.  Generally, the only layer that should not be transparent is the background layer.  Furthermore, on a transparent layer, tile number 0 is always assumed to be entirely transparent and is never drawn.  This allows GameDev to skip thinking about invisible tiles so it doesn't have to waste time drawing invisible pixels.  So keep that in mind if you try to use tile number zero to draw graphics in a foreground layer.
Title: tile set editing
Post by: bat on 2005-10-31, 10:02:13 PM
thanks!