Thanks danpost i was able to put together a score counter wich added 100 points each 10 seconds. But now, like NickyL212, iam also trying to be able to 'upgrade' my main actor. First of the 3 upgrades is restoring my main actors health. Could you give me an idea how i can add another heart to my 'hear't class? My 'RestoreHealth' isnt in the same world as my 'heart' class if that should be relevant.
public class RestoreHeart extends Actor
{
public void restoreHealth()
{
Actor health;
health = getOneIntersectingObject(heart.class);
if (health != null && (Greenfoot.mouseClicked(this)))
{
health += ????;
}
}
}
