This site requires JavaScript, please enable it in your browser!
Greenfoot back
Sneaky4296
Sneaky4296 wrote ...

2012/3/13

How to set GreenfootSound sound to a variable

Sneaky4296 Sneaky4296

2012/3/13

#
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?
davmac davmac

2012/3/13

#
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.