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

2019/4/15

Counter Issues - Please Help

jtl001 jtl001

2019/4/15

#
*GCSE Past Exam Question* I can't get this to work. When the cloud touches the sun it has to be removed and has to -5 from the counter. I have to edit the cloud code to do this and not the sun code. I've done this the way I've been taught and I can get the cloud to remove itself when it touches the sun, but when I add the counter code, the cloud no longer removes itself and the counter keeps taking 5 away from the code for however long the cloud is over the sun for. It's hard to explain. Could anyone help? My scenario is linked.Scenario
danpost danpost

2019/4/15

#
jtl001 wrote...
My scenario is linked.Scenario
Please show the problem code here. Usually best to show entire methods or class.
You need to login to post a reply.