Quote: "When I do this code though the AI is very jittery please help!"
Hi there. You are using a very small random number. Try this:
autocam off
sync on
`player
make object box 1,1,2,1
position object 1,0,1,0
`floor area
make object box 2,50,0,50
color object 2,rgb(0,100,0)
position camera -50,50,-50
point camera 0,0,0
do
`moving cotinuosly the cube
move object 1,0.03
aip=rnd(1000)
if aip=1 then rotate object 1,0,rnd(360),0
`area limits *******************************
x=object position x(1)
z=object position z(1)
if x<-24 then rotate object 1,0,rnd(360),0
if x>24 then rotate object 1,0,rnd(360),0
if z<-24 then rotate object 1,0,rnd(360),0
if z>24 then rotate object 1,0,rnd(360),0
`*********************************************
sync
loop
I'm not a grumpy grandpa
