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
Printable View
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
That's supported by default, what does not work for you?
For zombots e.g. one can use:Code:zom moveTo(somePos, 0.10);
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
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.
you might be trying to move a player. you cant.
linkto(), then move the link.
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.