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
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);
timescale 0.01
YuriJurek (29th April 2014)
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
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
YuriJurek (29th April 2014)
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.
Last edited by YuriJurek; 29th April 2014 at 18:17.
you might be trying to move a player. you cant.
linkto(), then move the link.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
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.