Game Development Community

Beta 4 - Cycling through Static Sprites

by Rodney Rindels - Torqued · in Torque Game Builder · 05/23/2006 (3:39 pm) · 5 replies

If you have a static sprite with with multiple cells and are attempting to cycle through them (which now looks awesome btw) , it seems the click rate is way off on iterating through the sprites. You have to click perfectly to get them to cycle through, or you'll either get nothing to happen, or it will pop up the "Image Builder" dialog open.

I would suggest seperating the actions, and possibly setting the "iterator" to the left mouse click since it does nothing anyway. I'm have a really hard time getting the static sprites to cycle. and it really kills productivity.

Beta 4 is looking hot though so far!

It looks like the function thats really getting called on the click events is

function ObjectBrowserItem::onClick

I slammed a few echo's in here , and indeed it misses the click event about 80% of the time, so I dont think its in the scripted portion. When the event does get called the action occurs as one would expect.

My guess its in whatever code your using to make the object look bigger on the mouse down event is trapping something and not letting other events finish.

The only onMouseDown events I found were in other tools not in the leveleditor code.

I'm not sure if this is something in the GuiControl::setFirstResponder or what. I haven't stepped through it entirely yet.

#1
05/23/2006 (4:16 pm)
I must say, the clicking was hard in Beta 3 too. Too slow nothing happened, too fast opened imagebuilder.

I'd guess I opened the image builder every time I ever tried to cycle through a sprite at least once
#2
05/23/2006 (4:39 pm)
Another thing is now that you have the cool looking GuiTextEditCtrl underneath the image, you could possible put your on that bar.... as little buttons or something... that moves the action off the guiT2DObjectCtrl and would give them their own objects so your not having to do so much to one controls actions?
#3
05/31/2006 (4:18 pm)
Rodney et al,

This issue has been resolved. Clicking on an item's frame caption will toggle it's frame and you can click them as fast as you like to toggle. Double clicking the image itself will bring up the appropriate editor.

Cheers,
-Justin
#4
05/31/2006 (6:30 pm)
Awesome ... thanks Justin!
#5
05/31/2006 (9:41 pm)
Just tested R1 .. works awesome... nice work guys!