Author Topic: tile set editing  (Read 3022 times)

bat

  • Fanatic
  • ***
  • Posts: 234
  • Cheak out the B*t project
    • MSN Messenger - ethanbatmay@hotmail.com
    • Yahoo Instant Messenger - ethanbatmay
    • View Profile
    • The B*t project
    • Email
tile set editing
« on: 2005-10-29, 09:34:44 PM »
what's the difference between black and transparent?
~bat

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
tile set editing
« Reply #1 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.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
tile set editing
« Reply #2 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.

bat

  • Fanatic
  • ***
  • Posts: 234
  • Cheak out the B*t project
    • MSN Messenger - ethanbatmay@hotmail.com
    • Yahoo Instant Messenger - ethanbatmay
    • View Profile
    • The B*t project
    • Email
tile set editing
« Reply #3 on: 2005-10-31, 10:02:13 PM »
thanks!
~bat