Hi.
First off, I'm a real beginner. I've read through a bunch of tutorials and articles and I've been playing around with the 'Creating a Memory Match Game' tutorial which was really great for learning but I'm getting stuck when trying to link objects with sound.
I'm trying to build a sound matching game for kids, where they get shown a collection of animals, a sound gets played and they have to click on the right animal. Each animal has a static image and a sound file. I've got it so that the game picks a random 4 animals from the collection and it picks a random one of these as the correct one, but then how do I play the correct sound file, without having an event for each animal?
I'm fine with basic audio, playing a sound as an action assigned to an event, but I can't work out how to do it conditionally, i.e. if the cow image is selected, then play the cow sound. It feels like it's a really simple thing to do but I'm just missing some basic bit of knowledge to get it working. If anyone can help me it'd be greatly appreciated.
Thanks,
James