Greenfoot greeps help

broken image
broken image

TomatoPile tomatoes = (TomatoPile) getOneIntersectingObject(TomatoPile.class) check whether there's a tomato pile here * Is there any food here where we are? If so, try to load some!

broken image

Super.act() // do not delete! leave as first statement in act(). * Create a Greep with its home space ship. * Default constructor for testing purposes. no additional fields (other than final fields) allowed in this class!

broken image

Remember: you cannot extend the Greep's memory. * A Greep is an alien creature that likes to collect tomatoes. Import greenfoot.* // (World, Actor, GreenfootImage, and Greenfoot) My question was how I could solve this problem? The strange thing is that the exact same code worked perfectly fine at school. This happens when one of the greeps touches the water at the edge of the map (what couses it to leave the world a litle bit). It was: 603 and it should have been smaller than: 600Īt (GreenfootImage.java:571)Īt (GreenfootImage.java:528)Īt (Simulation.java:507)Īt (Simulation.java:470)Īt (Simulation.java:204)Īt (Simulation.java:194) I get the folowing error when I run my greeps:

broken image