Game Development Community

Strange behaviour with moveTo()

by Playware · in Torque Game Builder · 01/18/2007 (6:51 pm) · 1 replies

Hi,
My object is required to move automatically to the next target position after it reached the target position but before that it will stop at the target position for a while. i am using the moveTo() function to do it. here's a sample of my code:

%obj.moveTo(%posX, %posY, %patrolSpeed, true, true, true);

is there anything i miss out? would appreciate your input, thanks very much

#1
01/18/2007 (7:51 pm)
What strange behavior occurs?

I guess it's worth at least noting that you don't have a margin as your last parameter - even though I don't think it's necessary either way and probably not the problem.