This site requires JavaScript, please enable it in your browser!
Greenfoot back
Rickboy26
Rickboy26 wrote ...

2013/12/11

Need help with GetObjectsInRange

Rickboy26 Rickboy26

2013/12/11

#
So i got a Hero Actor (Garp), And a enemy (Gnomus) How can i let Gnomus follow garp trough the map? i got this
 public Actor getGarpInRange()  
 {  
    if (getObjectsInRange(1200, Garp.class).isEmpty()) return null;  
    return (Actor)getObjectsInRange(1200, Garp.class).get(0);  
  }  
You need to login to post a reply.