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

2015/11/6

I'm new to coding an I was wondering if I can get some coding help.

1
2
danpost danpost

2015/11/7

#
Jason21 wrote...
Okay I got that part now. But if it says "cannot find symbol - method addnewColor (java.awt.Color,int,int) would I just declare the variable like this?
privat boolean addnewColor; 

if (BodyUp) addnewColor(new Color(Greenfoot.getRandomNumber(256*256*256)), 400, 300);
}
'addnewColor' does not appear to be a variable -- but a method. You supplied that part of the code. I presumed that you had a method with that name. If you do not, then -- why would you even be calling it?
You need to login to post a reply.
1
2