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

2014/1/2

Find what's near and move towards a specific one

Ushi1 Ushi1

2014/1/2

#
HELP! I understand that the getObjectsInRange method gives a list, but once I have that, I want my hero to move towards a specific one. I want the enemy to: a) find the objects near it b) see if the controlled actor - CrookCar.class is near C) if it is, then the enemy should turn towards it d) and then slowly move towards it I am new to both Java and Greenfoot and was wondering if anyone could lend me some help...
You need to login to post a reply.