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

2014/2/18

sound events?

chrissy098 chrissy098

2014/2/18

#
im hoping to make a game with random sound events, any idea on how i would do this?
danpost danpost

2014/2/18

#
Use an array of either GreenfootSound objects or String objects (for the filenames of the sounds). Use the array length in the 'getRandomNumber' method call.
chrissy098 chrissy098

2014/2/18

#
greenfootSound objects? how do they work?
danpost danpost

2014/2/18

#
Refer to the greenfoot API, specifically, the GreenfootSound class to see how to construct them and what methods are available to use on them.
You need to login to post a reply.