I have my AI code and in the code i call moveentity and it does nothing but elsewhere in my code if i call moveentity and it works. whats wrong? here the AI code that has to do with the prob.
If e\state = chase PointEntity e\e,p\e:MoveEntity e\e,0,0,1 EntityColor e\e,0,255,255 ;if roam then move around ElseIf e\state = roam TurnEntity e\e,0,10,0:MoveEntity e\e,0,0,1 EntityColor e\e,255,255,0 ; if attack then shoot at enemy ElseIf e\state = attack PointEntity e\e,p\e EntityColor e\e,255,0,0 If br > 30 fire(2) br = 0 endif endif