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

danpost's Comments

Back to danpost's profile

I just scored over 2500 playing this on the site!
Place your votes now. Only one more week to go. What are your favourite sports? Results so far: Auto Racing 32 Basketball 27 Track & Field 20 Swimming 20 Amer. Football 17 Baseball 11 Hockey 10 Soccer 8 Lacross 2 Polo
If you are asking about the spawn rate, yes; it is increasing as time goes on.
@m_p_v_13, the problem was appearing when the mousePressed object was not dragged (when the object was just clicked on). The object was being selected, but not de-selected. I changed 'mouseDragEnded' to 'mouseClicked' to fix it.
@kiarocks, the source is back.
Mik, you should implement a UserInfo high score screen to this.
5200!
@Gus, your code extends the ground object to the edges of the world, which was part of the problem. The other part was the height of the ground, which you did not account for. public Ground() { GreenfootImage image = new GreenfootImage(400, 50); image.setColor(Color.RED); image.fillRect(0, 0, 400, 10); setImage(image); } You will need to add 20 to the y-location of where the ground is added into the world to get the top edge of the ground at the same location as it was previously.
@Banginwithflavor, (cont'd) move the download into your scenarios folder and after starting your Greenfoot application, open the file from within the application.