//This script makes the ants run around. The command "go" is very processor-intensive because
//it contains auto-collision detection. We cheat here and only call "go" every 10th time. Else
//we use "move" which just moves the object with collision detection.

get me
def "i",p
seti 1,0
storei "i",1
pose "Walk1","Walk2",0.2,0.2

loop
get me
randi 1,20,1
seti 2,20
if i,1,=,2
randi -180,180,1
axis
setf 2,i1
spin
endif
loadi "i",1
addi 1,1
seti 2,10
if i,1,=,2
go 0.07
seti 1,0
else
move 0.07
endif
storei "i",1
endloop
