Im trying to make it so i have a day counter in the top corner of my screen. Im trying to make it so when the user clicks on an object, the dayValue is increased by one and this is displayed. This is what i have for the code so far but it is not working. This is in the BeeWorld World.
public int dayValue; public void addDay() { if(Greenfoot.mouseClicked(null)) { Actor actor = Greenfoot.getMouseInfo().getActor(); if(actor != null) { dayValue = dayValue + 1; } } }