From 873c3b32dfc02030cd414c61a4bed5dd4682c887 Mon Sep 17 00:00:00 2001 From: Rudy Boudewijn van Etten Date: Fri, 20 Oct 2017 05:48:03 +0200 Subject: [PATCH] Update Example - Ai taking cover positions 2.monkey --- Example - Ai taking cover positions 2.monkey | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Example - Ai taking cover positions 2.monkey b/Example - Ai taking cover positions 2.monkey index 873f5d4..5feb2a0 100644 --- a/Example - Ai taking cover positions 2.monkey +++ b/Example - Ai taking cover positions 2.monkey @@ -478,7 +478,7 @@ Class enemy ' Method checkrpg:Bool(x:Int,y:Int,direction:String) ' set how many times the ai uses the rpg - If Rnd(50)>3 Then Return False + 'If Rnd(50)>3 Then Return False Local mx:Float,my:Float Select direction Case "left";mx=-1;my=0 @@ -506,7 +506,7 @@ Class enemy px2+=mx2 py2+=my2 If mymap.mapcollide(px2-5,py2-5,10,10) Then Exit - If distance(myplayer.x,myplayer.y,px2,py2) Then Return True + If distance(myplayer.x,myplayer.y,px2,py2) < 10 Then Return True Next Next Return False