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

Loopy's Comments

Back to Loopy's profile

Thanx danpost. I figured out the sound thing last night. And "duh" on my part when it comes to the left wall and roof.
Still stuck on the bouncing thing but here are two new things: 1. I added sound to play but keep getting an error screen even though it compiles. 2. When I try to populateWorld(); with Orbs it will not compile even though it is copied exactly from one of my earlier programs that did work substituting orb for worm. (won't compile with or without capital letter) Will keep working!
I have been able to get the orb to bounce off the floor and the right wall but not the roof and left wall, working on that. Will post update when I do.
How do I know if this works other than it will compile? private int countSteps = 0; { for (int counter = 0; counter < 1; counter++) { countSteps = countSteps + 1; if (countSteps == 30) { energy--; countSteps = 0; } } }
I still do not understand where to begin to subtract energy from the dog's energy supply.
I still have not been able to get myDog to greet another dog an then stop on its own. myDog will dance and then stop when the dance() method is invoked but not when is is brought on by greeting the other dogs. What method should I use to correct this? an if/else statement?
I got the sound from the scenario itself. There was already some things coded for us.
Next step has been done but won't stop doing it. Need to figure out how to shorten the time act is being done.
I did the other way around but I got it to work. Next step: I am to get the dog to greet the other dogs with a dance. I know how to make the dog dance and how to get it to the other dogs. I have not yet been able to get the words that the compiling will accept.