Game Development Community

Sprite Key mode doesn't work

by Andy Hawkins · in Torque Game Builder · 04/29/2013 (9:12 pm) · 4 replies

I've imported a graphic which is 512 x 1024 with a transparent background, 1 pixel borders around the sprite and set to KEY but it doesn't break it up into frames. What's the secret to getting KEY to work for static sprites?

#1
04/30/2013 (4:52 am)
KEY mode, which is a really bad format to use, is for piecing together multiple images together. If you want to split up a single images into multiple pieces, use CELL.
#2
04/30/2013 (6:01 am)
It's for my art students. They are reskinning the Adventure Kit and the moment they change just one pixel the Key breaks and the image doesn't split up properly. So their simulated workplace job is to reskin the product, which means then challenge is to not tamper with the names of the files or the dimensions.
#3
04/30/2013 (7:19 am)
Ahhh, I see. Different use for KEY then. You are talking about a color key? I'll have to download the Adventure Kit to get an idea of what you are talking about. Perhaps during that check, since I'm kind of busy, maybe someone else might jump in and provide the answer. It's been a while since I used TGB, especially the Adventure Kit, since all my efforts have been focused on Torque 2D MIT.
#4
05/01/2013 (9:50 am)
To test it open data\images\sprites\structures.png - draw something on it and save it then open the Adventure Kit in TGB - it breaks the key if you inspect in the Static Sprite tab.