For school i am making a game and i have the following problem:
I have a truck that is made out of 2 parts the front and the back
Rear part
Front part
And this is how i want it to look like in greenfoot:
in the game there will fall objects from above
there will be containers wich you must catch with the rear of your truck
if you "catch" it with the front part of the truck you will loose one of 3 lives
Now i want to know: how do i make the rear end follow the front or the front follow the rear?
If the truck catches a container or gets hit by a container on the front the container disapears same for containers that get missed and fall on the ground


