Please remove the 'Greenfoot.start()' statement from the world constructor. I was dead before I even started playing (just by the time it took to read the description). Also cannot reset, probably do to static variables in your code not being dealt with properly. Would also be nice if you would inform us as to what keys to use to control the car and shoot.
Please remove the 'Greenfoot.start()' statement from the world constructor. I was dead before I even started playing (just by the time it took to read the description). Also cannot reset, probably do to static variables in your code not being dealt with properly. Would also be nice if you would inform us as to what keys to use to control the car and shoot.
@seal308, I sure it is just a matter of changing the image of the one actor.
@sushi, there is a glitch, in that sometimes when a new frog appears under the snake (possibly just at the head) that the snake will not be able to eat it. Happened to me at 600, but I am sure it was just random chance.
@Duta, I cannot be sure. It was too long ago. This was like my 3rd project in Greenfoot. I am not sure if I was using static variables at that point. However, I noticed I had said that it compiled different each time; which indicates that it was probably something else.
A lot of folks have been asking about how to detect collisions, or how not to pass through objects, so I created this example which also has an example of how one can sub-class my 'Bar' class to give it some functionality.
2012/6/9
Space Invaders
2012/6/9
Space Invaders
2012/6/9
Space Invaders
2012/6/8
Progress bar/Health bar class
2012/6/4
Snake
2012/6/2
Typing
2012/5/26
Dots and Boxes
2012/5/21
Parking Escape
2012/5/15
Barriers and Bars