This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
BigBoy123
wrote ...
2020/3/14
How do I check if there is already a bomb object?
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
2020/3/14
#
Use:
if (getWorld().getObjects(Bomb.class).isEmpty())
You need to login to post a reply.
X