PDA

View Full Version : MoveTo()



YuriJurek
29th April 2014, 14:21
Hello,

Straight to the question: Is it possible to use moveTo() or any other move() function with floating point number as the time argument? More precisely I am looking for a way to do it but cannot figure out, maybe libcod?

Regards Yuri

kung foo man
29th April 2014, 14:53
That's supported by default, what does not work for you?

For zombots e.g. one can use:
zom moveTo(somePos, 0.10);

IzNoGoD
29th April 2014, 15:58
If you keep using moveto() with as movetime only the frametime (0.05 seconds) to exactly the same spot, it will start oscillating. Just .origin it once after the first moveto() to that position and be done with it

YuriJurek
29th April 2014, 18:15
I am going to see what is happening there I wasn't aware that it should work. It just doesn't for me.

Thanks for answers.

Regards Yuri.

IzNoGoD
29th April 2014, 19:02
you might be trying to move a player. you cant.
linkto(), then move the link.

YuriJurek
29th April 2014, 19:24
I know it though it's not related to moving a player, anyway thanks for additional advice.

When I get some free time I'll try to explain the problem a bit more clearly.

Regards Yuri.