Saturday, 30 April 2011

Code developments 2

At this point I added in my sounds.. I have chosen drum sounds that I have made on garage band, The idea being that you can make your own drumbeats.. Once I got the sounds playing the trick was to make them play as the larger pulsating circle hits them.. After playing round with it I found that i could get the sound to play only at the x or y co ordinate but not both.. meaning the sounds would play but they would play out of time with the pulsating circle.. At which point I admit frustration kicked in and I ditched the pulsating circle and instead went for a slightly more boring line that moves across the screen..



Here is the code with the moving line instead of the pulsating circle.. The good news is now I have a working code. Each circle plays its noice as the line hits the center co ordinate. Now for the tricky part of making more than two circles

No comments:

Post a Comment