Hi all! I'm Foxx!
Its my first time here.
Nice to meet you all =)
Right now, im trying to program a game. Its all about moving containers from a ship to a port. At the port the player needs to drop the container at a place where there's enough space.
I've made a crane object with Greenfoot and gave it a keylistener in the act-method (up, down, left, right arrows).
So its already possible to move the crane. But i still cannot pick up, move and drop containers. I also need a function(i think "if(...){ }") to control the player("is he smashing other containers with his crane? If yes, game over!" or "Player has touched the water, so game over!") Could someone please explain how i should do that?
If needed i could also post a pic of the game...
general information:
-1 world
-10 actors(crane, container1, container2 water, boat, etc)
Excuse me, if i ask too much...