Game Development Community

playthread goes back to first frame for non cyclic animation

by vincent kway · in Torque Game Engine Advanced · 11/02/2010 (8:36 am) · 1 replies

Hi guys,

I'm having problem with the function playthread(). When I call the function %obj.playThread(0, "openGate"); for my dts file, it animate correctly at the start. But once the animation finished, it seems like it goes back to the first frame where the gate is close.

Anyone knows what is the problem ? Please help.

Thanks.


#1
11/02/2010 (10:20 am)
This sounds like a bug.
The code that controls this is located at:

ShapeBase::updateThread()
ShapeBase::advanceThreads(F32 dt)

Verify the atEnd flag is networked correctly.
Verify your sequence is marked as not cyclic.
The playback position is set with setPos( st.thread, st.position ),where position = 0 is the beginning, position = 1 is the end.