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

2016/11/30

Isn't starting up (again)

1
2
3
LakeOtis LakeOtis

2016/12/9

#
Nosson1459 wrote...
I didn't ask for the "shopkeeper" class because:
LakeOtis wrote...
the "shopkeeper" class (which isn't currently being used)
so I took that to mean it's as empty as the characters class. now I see the shop in the You class you cant setWorld forSale you have to do
setWorld(new forSale());
Thank you
Nosson1459 Nosson1459

2016/12/12

#
The name of the discussion is "Isn't starting up (again)", that would be because of a syntax error. The You class should have had red lines going through it in the side bar of the Greenfoot program, so you see to open the editor of the You class and there should be a red squiggly line under the line of code that says
Greenfoot.setWorld(forSale);
then when you hover the mouse over the line, a black box will appear that says "cannot find symbol- variable forSale", it would probably have taken faster to solve if you would have mentioned this.
You need to login to post a reply.
1
2
3