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
MrJoeShow
wrote ...
2014/9/23
I want my spaceship to only shoot a number of shots before you cannot shoot anymore
MrJoeShow
2014/9/23
#
I just have no clue on how to do this, need a response so. pls.
NikZ
2014/9/23
#
Just make a variable shotsLeft = (your number). Every time the rocket shoots, do shotsLeft--. You can't shoot if shotsLeft is 0.
You need to login to post a reply.
X