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

4 days ago

why should you use getOneIntersectingObject

Jang Jang

4 days ago

#
i am programming a game for school at the moment aboout kollisions and as far as i know is getOneIntersectingObject important for that. But i really dont get what de benefits are. wouldnt it not just be easier to say isTouching. ive seen it to be used for activating methods of other author (lke a wasp) via the act of an other (l like a butterfly) and how do you do this then so if for example myBoard is intersecting with Item --> the Ball should duplicate
danpost danpost

3 days ago

#
Jang wrote...
i am programming a game for school at the moment aboout kollisions and as far as i know is getOneIntersectingObject important for that. But i really dont get what de benefits are. wouldnt it not just be easier to say isTouching.
Believe me. As you continue programming, you will find how useful those other collision methods can be. They all have there benefits (and drawbacks).
You need to login to post a reply.