Here's what I have an it's a total failure:
obj/proc/Spiral() spawn if(src)
var/N=0
var/NN=2
while(src)
N+=0.5
new/turf/GroundDirt(loc)
if(N==round(N,NN))
step(src,turn(dir,45))
N=0
NN++
else step(src,dir)
sleep(1)
Thanks.
ID:273939
![]() Sep 8 2011, 6:36 pm
|
|
Ok I've been trying to do this for hours. Can you show me some code which makes an object move in an outward spiral pattern?
Here's what I have an it's a total failure: obj/proc/Spiral() spawn if(src) Thanks. |
It spirals, but due to the tile based movement and the lack of a way to specify only using cardinal directions in distance, it's fairly ugly.