12-12-2015, 11:56 PM
Create a world variable. (Make it a number variable)
Create a world method appropriately named to what your task is.
Use a list function, have the number variable you created be assigned to a random number (use the min and max number to make a range of how many sound clips you are using)
then use if statements below that to find if the variable value == "randomly selected number" then "sound clip whatever" will play.
Use the else section of the if statements to further your conditions to test for the value of the variable.
There are multiple ways to have it loop while your world is running but one of the easiest is to put in a loop and place the method in a event "when the world begins"
If you are stuck on a project, check out the tutorials I made here at this link:
http://alice.org/community/showthread.php?p=36778#post36778
There are lots of tutorials on it so far, including some youtube videos, check it out
Or..
Go to my youtube channel to check out my alice 2.2 tutorials I have there..
http://www.youtube.com/user/sfunk1992?feature=mhsn
|