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

2016/11/24

Counter help!

lostcoder21 lostcoder21

2016/11/24

#
I have started a game at school in which I have added a counter, however this line is coming up red.
{Background.counter.add(1);
Especially the 'counter' bit. The counter is counting how many aliens i save from the world, which I used the eat command. I can post my whole code if it'll help. I really need help, any help would be greatly appreciated!
danpost danpost

2016/11/24

#
Please show the 'counter' field declaration line in the Background class.
You need to login to post a reply.