I've been working on a day/night cycle when I started this game but now I want to add different backgrounds, the Idea is to make my game look like the player is traveling around the world, the world only has two images it uses to change backgrounds or in other words two functions for the day and night time, well now i want to add a third background to change the image from the night time image to the next day time image. The idea is to switch background images in order. my issues is that when i do the cycling, two of the images are stuck together, these are night() and day2(), here's the coding for the timing of each image
and here's the if statements of switching the images
help plz
public boolean isDay()
{
return (time/10000)%2==0;
} if ( isDay() )
{
day();
}
else if (isDay())
{
night();
}
else
{
day2();
}

