This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Alberthepirate
wrote ...
2024/3/1
Restarting a bg song
Alberthepirate
2024/3/1
#
So I have so far GreenfootSound song = new GreenfootSound("song1.mp3"); But, is there a way so I can restart the song?
danpost
2024/3/2
#
Alberthepirate wrote...
So I have so far GreenfootSound song = new GreenfootSound("song1.mp3"); But, is there a way so I can restart the song?
?
1
2
3
song.stop();
// then later
song.play();
as opposed to:
?
1
2
3
song.pause();
// and later
song.play();
which just resumes the song.
You need to login to post a reply.
X