I want my character to have a reload time before using a move again, but I can't figure out, even with a lot of googling, how to get it to work. Currently there's a "Greenfoot.delay(5);" after the move, but it still doesn't work.
int delay = 0;
delay++;
if (delay == 75)
{
// things you want to do after delay
delay = 0;
}int delay = 0;
delay++;
if (delay == 75)
{
// things you want to do after delay
delay = 0;
}