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

2015/10/6

non-static variable : health

pleasehelpme pleasehelpme

2015/10/6

#
help :( i have been given instructions : 1. create a non-static variable called health for objects of the ball class. initialise it to 5. 2.if a ball hits an edge, the ball suffers 1 damage. 3. set image of the ball depending on its health. 4. if health is zero, remove the ball. i have no idea how to do these :(
davmac davmac

2015/10/6

#
Please read this advice, especially part 4.
You need to login to post a reply.