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

2020/3/14

How do I check if there is already a bomb object?

BigBoy123 BigBoy123

2020/3/14

#
I am making a game where my player can shoot bombs but i need to only be able to shoot one bomb at a time and cant shoot another until the bomb from before is destroyed.
danpost danpost

2020/3/14

#
Use:
if (getWorld().getObjects(Bomb.class).isEmpty())
You need to login to post a reply.