Game Development Community

TGB 1.6: Animation Builder won't show all cels in image

by Joe Rossi · in Torque Game Builder · 12/16/2007 (9:53 am) · 0 replies

When using images with 4 or more large sized cels in them (such as 98 x 98) you wont be able to see the 4th cel in the animation builder. Or the 8th cel, or 12th...etc.
To see the problem, try opening the puzzleblock or puzzleGem images inside the Animation Builder.

Here is a simple fix:
\tgb\tools\animationEditor\utility\imageMapPreviewWindow.ed.cs
in function ImageMapPreviewWindow::updateSize(%this)
Add this as the last line:
%this.setCurrentCameraZoom(0.5);

I find that zooming out by this amount will correctly display all cels in any image that I've tested.
It also looks a little better overall.