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

Report as inappropriate.

epicm512
epicm512 presents ...

2012/10/29

food chain

you are the crab. you want dinner, but some seals want you for dinner as well! try and get all the worms before you become some crab cakes for the seals. the murky water are safe spots.
Good luck and have a good lunch too,or be lunch...
controls:
right arrow key=down
left arrow key=up

2881 views / 23 in the last 7 days

Tags: None

Your browser is ignoring the <APPLET> tag.
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

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.