02-19-2009, 08:24 PM
When I was in one of the rooms of cave of ordeals ("The answer is...") I was erasing an enemy and got:
Code:
___________________________________________
ERROR in
action number 2
of Step Event
for object obj_player:
Error in code at line 1:
if instance_number(par_enemy)>0 { if floor(instance_nearest(self.x,self.y,par_enemy ) .y )=floor(self.y) { punch=0 } else if floor(instance_nearest(self.x,self.y ,par_enemy).y) =floor(self.y)-1 { punch=0 } else if floor(instance_nearest(self.x,self .y,par_enemy).y ) =floor(self.y)+1 { punch=0 } else if instance_nearest(self.x,self .y,par_enemy).y<self .y { punch=1 } else if instance_nearest (self.x,self.y,par_enemy) .y>self.y { punch=-1 } else { punch=0 } } else { punch =floor(random(3)-1) ; } if instance_number(par_ienemy)>0 { if instance_number(obj_ai )>0 and instance_nearest(self.x ,self.y,obj_ai).ducking ==true { punch =-1 } else if floor(instance_nearest(self.x,self.y,par_ienemy).y) =floor(self.y) { punch =0 } else if floor(instance_nearest(self.x,self.y ,par_ienemy) .y) =floor (self.y)-1 { punch=0 } else if floor(instance_nearest (self.x,self.y,par_ienemy ) .y)=floor (self.y)+1 { punch=0 } else if instance_nearest(self.x,self.y,par_ienemy) .y<self.y { punch=1 } else if instance_nearest(self.x ,self.y,par_ienemy ).y>self.y { punch=-1 } else { punch=0 } } else { punch=floor (random(3))-1 ; }
at position 790: Unknown variable ducking