when i put this code in the truck class (Vrachtwagen) then i get an error at line setVrachtwagen that it can't find the method.
and for the score adjustment i've added 3 hearts into my scenario as lives in the Lives class but i don't know how to
set a conditon for it into code though..
public void act()
{
if (Greenfoot.mouseClicked(this))
{
if ( platform.getSchip().getKratten() != null )
{
platform.getSchip().setVrachtwagen(this); // vrachtwagen laadt kratten in
getWorld().removeObject(this); // 'krat verdwijnt
}
}
}

