I really am struggling with a game that adds resources that will be later used for building, collision detection is all messed up what is a better alternative
if (isTouching(Survivor.class) && (Greenfoot.isKeyDown("space")))
{
woodCounter+= 1;
getWorld().showText("Wood:" + woodCounter, 100, 100);
}
