ID:155140
 
Hello,

The new Pixel Movement is working okay for me with clients, but it doesn't work smoothly for the NPCs. My world.fps var is 40 and step_size var for movable atoms is 4. I can move my mob smoothly but the NPCs won't move smoothly. It looks like they are jumping by 4 pixels.

mob/testnpc
name = "Test"
icon = 'base.dmi'
New()
.= ..()
walk_rand(src, 4, 0)


Any help will be appreciated.

- Hashir
Because you have the lag set to 4, and the speed set to 0 (which defaults to the step_size of 4)

so essentially what you have is
walk_rand(ref=src,lag=4,speed=4)

which will make it jump 4 pixels every 4 ticks instead of moving 4 pixels as smoothly as possible. set the lag to like 0.5 or something
In response to Ill Im
Ah, thank you for helping with that.

I have another question, the animation of the movement seems a little, fast or something with Pixel Movement. I tried setting the movement speed in icon file to 0.25 and many other higher and lower values but it won't work. Any help?
In response to Hashir
Frame delays are in 1/10ths of a second, regardless of what world.fps is.

Pixel Movement removes gliding completely because, at a higher framerate and a lower step_size, moving normally looks like you're gliding already.
In response to Kaiochao
My problem is fixed by downloading the new 1103 Beta. Anyway, thanks for your help.