world
fps = 40
icon_size = 32
mob
icon = 'mob.dmi'
icon_state = "mob"
obj/spinner
icon = 'spinner.dmi'
icon_state = "spinner"
proc/test()
animate(src, transform = turn(transform, 120), time = 5, loop = -1)
animate(transform = turn(transform, 120), time = 5)
animate(transform = turn(transform, 120), time = 5)
while(src)
pixel_x ++
sleep(world.tick_lag)
mob/Login()
..()
src.loc = locate(1,1,1)
var/obj/spinner/s = new(locate(2,2,1))
spawn s.test()
The pixel_x of the object should increase with each server tick, but does not. The actual value will increase but will not affect its visual position within the world.
You can pass pixel_x and pixel_y to animate() though, which should handle the change for you.