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

2021/1/18

isTouching isn't working

iDragon3o6 iDragon3o6

2021/1/18

#
Hello! This code is in the act method, but nothing happens if I start this:
if(isTouching(PlayersBullet.class)) getWorld().removeObject(this);
Thank you!
danpost danpost

2021/1/18

#
iDragon3o6 wrote...
This code is in the act method, but nothing happens if I start this:
if(isTouching(PlayersBullet.class)) getWorld().removeObject(this);
Nothing wrong with that line. More info/code required.
You need to login to post a reply.