Touch actor play sound question
aTrain
Member Posts: 1
My first attempt at an app is a simple app for my 1 year old daughter on our iPad. All I want is some pictures that when touched play a sound. I have it all layer out and looking good, but am having problems with the sounds. I set the attributes for an actor to Actor receives event -> mouse button -> down -> play sound (sound name). The sound plays when button is down, but it seems to play wherever I click, not just on the actor. I just want the actor to play the sound. Thanks for any help.
Comments
Kids ! My son (3 years old) is also a great reason to want to learn how to put together games from little kids (mind you, 1 is pretty young to be using an iPad !).
: )
What you are trying to do is really simple.
The reason the sound plays wherever you click it that the instruction you have used is 'whenever the mouse button is down, play this sound' - it doesn't specify that you need to click on the actor - only that the mouse button needs to be down.
Try this instead - Actor receives event -> touch -> is -> pressed.
With this rule you need to actually touch the actor.
Good luck !