Game Development Community

Problem with creat animation with torqueX editor

by Danny Mejia · in Torque X 2D · 02/25/2007 (11:41 am) · 9 replies

I have a images that is 1092x42 with 26 frames. I have setup the animation in TGB with these setting

Cell Count X = 26. Cell Width = 42.
Cell Count Y = -1. Cell Height = 42.

But the setting don't work in the toruqeX editor. I can't set a -1 in the Cell Count Y. Could someone help me with this?

#1
02/25/2007 (1:40 pm)
Probobly too big... try making it smaller
#2
02/25/2007 (6:12 pm)
Its shouldn't but to big... It works in TBG so way want it work in torqueX.
#3
02/25/2007 (6:16 pm)
Its working sorry.
#4
02/26/2007 (5:26 am)
Just to follow up since the poster didn't post his solution:

When setting cell sizes or counts, you need to set one or the other (either cell count x and y, or cell size width and height) but not both. It's an either/or input.
#5
02/26/2007 (12:15 pm)
Hmm. I don't remember ever setting one or the other, but always both. From the looks of what he had in his original post, he had a -1 for the cell count of y, which is obviously not possible since you have to have at least a single cell both x and y.

If we couldn't set them both, then what if you had a non-square image? What if you had an image that was 42 pixels wide and 100 pixels tall for a cell size? Just because you know one, doesn't automatically tell you the size of the other?

www.linkedin.com/img/webpromo/btn_viewmy_160x25.gif

www.mmogamedev.info/images/imgdc_ad1.gif
#6
02/26/2007 (1:12 pm)
You set either both sizes or both counts. Not all four.
#7
02/26/2007 (1:18 pm)
Ohhhhhh. Misread his post, sorry.
#8
02/26/2007 (3:44 pm)
The "-1" means "auto-calculated based on the other settings".
#9
02/26/2007 (4:35 pm)
Good to know! Thanks Stephen

www.linkedin.com/img/webpromo/btn_viewmy_160x25.gif

www.mmogamedev.info/images/imgdc_ad1.gif