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 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 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.
2012/5/13
OrbWorld 2
2012/5/12
OrbWorld 2
2012/5/12
OrbWorld 2
2012/5/11
Cute Dogs
2012/5/11
Cute Dogs
2012/5/11
Cute Dogs
2012/5/7
Mouse Run
2012/5/6
Cute Dogs
2012/5/6
Cute Dogs