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

Comments for food chain

Return to food chain

A new version of this scenario was uploaded on Mon Oct 29 21:56:32 UTC 2012 fix error that made seals go in water
epicm512epicm512

2012/10/29

anyone plz leave some ideas for my next game.
danpostdanpost

2012/10/29

I think you need to work more on this one before moving on to something else. The seals are going 'under' the water and 'sneak-attacking' the seal for lunch!
danpostdanpost

2012/10/29

I meant 'sneak-attacking' the lobster.
epicm512epicm512

2012/11/4

crab. its a crab
JimmyFakeJimmyFake

2012/11/4

still danpost is right, when I am in the water spots, the seals still can eat me. Its even worse than on the normal field, because i can't see them under the water.
Im_CarterIm_Carter

2012/11/4

I think the Crabs shouldn't automatically move by themselves it kind of defeats the purpose of the "safe" zones.
epicm512epicm512

2012/11/6

well i literaly just put my own spin on the example because im taking classes and im pretty new. Also, if you are partialy in the field the seals can still eat you. that is probably why you got eaten when you were in the water.
MatheMagicianMatheMagician

2012/11/6

About the seals going under the water, take a look at the actor API for the method "setPaintOrder();": it should solve your problem.
danpostdanpost

2012/11/6

That will show the seals above the water, but will not resolve the issue of the lobster being eaten while totally in the water area. I placed the lobster, stuck to the left wall, right in the middle of the upper water image (vertically). A seal went into the water area (hidden under the water image) and ate the lobster. So it is not a matter of the lobster being 'partially in the field the seals can still eat you'.
danpostdanpost

2012/11/6

Sorry again, CRAB.
danpostdanpost

2012/11/6

Just need to put, in the Seal class, something like (this is pseudo-code) move forward if in water, move back and turn some to make sure the seals to not go into the water.
epicm512epicm512

2012/11/11

i might try that. thanks