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
@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.
@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.
2013/5/28
Toll-tally Mad
2013/5/24
Poll Taker
2013/5/24
Alien Survival Final
2013/5/23
PIP Actor Class
2013/5/22
PIP Actor Class
2013/5/17
Marbles
2013/5/17
Marbles
2013/5/17
My Game
2013/5/16
Runner [WIP]