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

danpost's Comments

Back to danpost's profile

@Banginwithflavor, you could download the source and take a look at how it was done. You can tell the source was included because just above and to the right of the scenario applet window, you can see a big green 'button' that says 'Open in Greenfoot'.
The intersection of the wire to the bulb should be restricted to the base of the bulb (connect a wire to the glass of the bulb should not make the light work).
@GreenGoo, first click on the cable to select it (it gets a little thicker). Then drag the object to where you want it. Keeping focus on the objects is a little tricky, but you should get by.
That was supposed to be '((SWorld)getWorld()).'.
Ok. Prefix with '((SWorld)getWorld).'.
Just prefix it with 'getWorld().'.
Same way I added the Counter object into the world in this scenario.
@JetLennit, it appears that you must have at least one statement between each set of squiggly brackets.
Start a discussion and show your code.