Sign Up, Lost Password
How to set GreenfootSound sound to a variable
Making my music player, and I have greenfootSound figured out, but the problem is I need the song to change (to get it to stop, pause, and such) So how do I set the sound to a variable?
You store a reference to a GreenfootSound in a variable using the exact same technique as for any other type: GreenfootSound mySound = new GreenfootSound("mySound.mp3");
You need to login to post a reply.