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

2023/9/6

How do I make My Space ship detect if there is another space ship in a certain radius around it?

Tema Tema

2023/9/6

#
I want to make my actor (SoldierShip) detect if there is another type of ship nearby. I don't think I have any code that would help as I am pretty stupid. Any help would be greatly appreciated.
danpost danpost

2023/9/6

#
Tema wrote...
I want to make my actor (SoldierShip) detect if there is another type of ship nearby. I don't think I have any code that would help
The Actor class has a method to list objects within some radius of an actor. Take a look: Actor class documentation
You need to login to post a reply.