I am working on a game and i want a player 1 screen to display after a certain amount of time, i figured that the easiest way to do this was with a simple count method, so i wrote one but it doesn't seem to work, i was wondering if anyone could look at the code and tell me if there is anything wrong or maybe a better way of doing it, thanks.
Here is the code:
public void textdisplay()
{
int textCount = 0;
if (textCount == 0) {
textCount ++;
if (textCount == 100) {
Greenfoot.setWorld(new Player1wins());
}
}
}
oh and i would also like to know how to set images to animate my players, thanks.

