Game Development Community

How to call a function every second?

by Nic Biondi · in Technical Issues · 01/29/2004 (6:00 pm) · 4 replies

I need to call the function:
%item.setTransform(%x SPC %y SPC %z);

continually in order to update the position of a static object(like a tree). I would ideally like to do it in script, but am not against the idea of coding it. Could someone please tell me how to script this, or if scripting is not possible, how to implement this in c++?

#1
01/29/2004 (6:08 pm)
You could use schedule, but depending on the number of items, it might be a bit slow.
#2
01/29/2004 (6:18 pm)
Check out
void processTick(const Move *move);

It would be via code.
#3
01/30/2004 (12:26 am)
Ok dee, i will chack it out. Where is a good reference to "check" this stuff out?
#4
01/30/2004 (9:25 am)
The docs for GameBase in the C++ reference manual explains the tick system.

Remember, Torque posts in Torque forums.