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

2019/2/1

Updating Instances of Classes

Targetplaz Targetplaz

2019/2/1

#
Is there a way to change which wombats can eat leaves? It says in the code leavesEaten = leavesEaten + 1; which i assume tally's how many leaves were eaten but is there a way to stop some instances of wombats from eating leaves?
danpost danpost

2019/2/1

#
Many ways. It would depend on how many wombats you want to be eaters (at one time); whether (and when) their eating status could change (among other things.
You need to login to post a reply.