Hi, I'm making a Pacman sort of game. I need to have the intro sound play once before Pacman and the Ghosts are able to move. How can I achieve this?
My current code is:
I'm quite lost, so any help would be much appreciated. Thanks :)
private boolean introPlaying();
if(!Greenfoot.isKeyDown("left") && !Greenfoot.isKeyDown("right"))
{
playPacmanIntro();
introPlaying = true;
if(isPacmanIntroStillPlaying())
{
introPlaying = false;
}
}