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

2014/9/23

I want my spaceship to only shoot a number of shots before you cannot shoot anymore

MrJoeShow MrJoeShow

2014/9/23

#
I just have no clue on how to do this, need a response so. pls.
NikZ 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.