okay this is my simple code to get a monster to come out of the sea and follow the player, later i will add the code to make him attack when he gets close. but at the moment he goes in any direction faces the oppersite way from the player and go up and under the matrix can any tell my whats wrong
`going into this every loop
AI:
ai#=1000
if ai#<1000 then ai#=ai#+1
if ai#=1000 and baddy#=0 then gosub makebad
if baddy#=1 then gosub movebad
return
makebad:
load object "baddy/walk.x",50
append object "baddy/punch.x",50,26
append object "baddy/falgetup.x",50,57
position object 50,1806,-30,2072
scale object 50,75,75,75
set object speed 50,20
loop object 50,1,25
baddy#=1
ai#=0
return
movebad:
point object 50,X#,Y#+10,Z#
move object 50,5
mZ# = object position x(50)
mX# = object position x(50)
mY# = get ground height(1,mX#,mZ#)
position object 50,mX#,mY#-10,mZ#
return
killbad:
play object 50,57,97
if object playing(50)=0 then delete object 50
baddy#=0
return
Newbie Now; Expert Later
Current project:The Sorus
