Game Development Community

SetBlendColour() in a tile map

by Tim Doty · in Torque Game Builder · 02/19/2006 (3:18 pm) · 1 replies

You can setBlendColour() on an entire tile layer, but can you do it on just a tile? I'm looking and can't see any way to get an object reference for an individual tile. Just curious if I'm blind or it can't be done.

Tim Doty

#1
02/29/2008 (10:22 am)
I can't find any way this can be done. I've been wanting to do the same thing.

My workaround was to have a separate image file with the alpha at 70% and otherwise the same images (that's all I needed.)

One other way I thought of would be to have multiple layers and you could essentially move the tile between them. This would be a little more flexible than having separate images, but you'd need a new layer for every blend you have. Upkeep wouldn't be too much more than the upkeep of managing your blends. You could still handle all GUI interaction with the one main layer.

If you needed an arbitrary number of blends, neither of these would really work.