Sunday, 1 May 2011

Progress over the holidays

Final Sketch: http://www.openprocessing.org/visuals/?visualID=27933

I have been having a bit of trouble with getting the balloons to fall down separately as them seem to fall down and bounce at the same time which doesn't look too effective. I found the code which has helped me in that situation.

Now, moving onto making the balloons "Pop!!"  I know this was going to be a challenge as I had no idea whats so ever. So I had to similar it own to how much I could understand. So I decided to just make the balloons disappear when they touch the bottom of the screen. When I did this, I realized that when the first balloon touched the bottom of the screen, all the balloons disappeared! So I had to rearrange the code so it would delete one balloon if it touch the bottom of the screen not if one touched the bottom of the screen it would delete all of them.

Then, I moved onto sound. This something I thought I was going to have trouble with. Turns out it was rather simple. I had to add some simple code that everyone uses for making sound. Then I went onto youtube and found heaps of popping balloon sounds. I then edited to suit me in garage band which was useful. I had trouble exporting it as wav. So then found a site "converter" to convert my mp4 to a .wav. I had recently tried putting in the sound but it didn't seem to find the file. So i converted the file again. This time it worked which I was really proud of.

So I had the ballons falling down and popping if they touched the bottom of the screen. I also has the sound of popping  happening. All I had to do then was to make my sketch interactive.

Adding interaction was something i thought was going to be difficult. I had a meeting with Ben and it was actually really simple. All I had to do was this (if(dist(mouseX,mouseY,x,y)<50){
      speedY = -abs(speedY);) This made my sketch interactive.

My Final Sketch: So I have created a balloon popping sketch which uses sound and which is also interactive. When I first had a play on the final, I found it quite entertaining because it was a bit of a challenge to keep the balloons up! Its a sketch you will definitely enjoy!

No comments:

Post a Comment