Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

I need Help to try and go further

Hi every one I just to to go a bit further with the crystal App, I wish to make it make a sound whit a touch or shake it can any one tell how I can do That please thanks

1 Answer

I haven't gone any further than the project track does so I wouldn't know the syntax but I would imagine implementing a sound on shake or touch would be easy enough.

First you would have to find or record the sound file, Then include this in your project as you did the images (for the animation), Then in both your touch and shake events initialize the sound.

That might seem obvious, but hopefully it helps.

As for the actual syntax try googling perhaps?