Game Development Community

Ive got one question

by Scott Knox · in General Discussion · 01/23/2008 (5:56 pm) · 1 replies

Ive been doing some decent programming for a while now and just bought game builder yesterday, ive loved every little bit of it up till now, and i know the answer is right in front of my face but for some reason i cant get backgrounds masked out of images i put in it. how exactly is it done in game builder? (i know this is probably a lame question, but ive been trying to find it for forever now.)

About the author

Recent Threads


#1
01/23/2008 (6:23 pm)
This question comes up a lot. Use a PNG file, which supports transparency natively and just erase the parts that shouldn't be there. If you're use to a certain color representing a transparent pixel, it's a weird adjustment to make.

Just to address your last bit, it's not a lame question. I don't know if any of the TGB basic tutorials cover the concepts of Torque and TGB. If you really want to understand how images work, you need to understand the image datablocks and looking in the datablocks.cs file is a good place to start.

Oh, try to put threads in the right topics. Searching can be helpful, because this topic comes up a lot. Still, I don't fault you for not knowing, it's really something that should be right up at the top of the documentation that ships with TGB.