0
Answered

Struggling with Read to Me/Read by Myself

russellshaffer 11 years ago updated 11 years ago 3
In the "design" window of InteractBuilder, I'm trying to create two buttons: one that will access my book with an audio file that reads the story to the reader ("read to me"), and a second that will let the child read the book without the voice-over audio file ("read by myself"). (However, I still want the child to access other sounds in the "read by myself" version.)

Can you please explain to me what interactions and behaviors to use so I can make these options available to my readers? Thank you for your help.

russellshaffer
+1
Under review
Hello Russell, this is what you will have to do in this situation:
1) On the first page of your app you need to add an App Counter (or Global Counter)
2)For the "Read to me" element you will need: a Tap-CounterSet behavior with Target being that App Counter and the Value will be 1.
3)For the "Read by myself" element you will need: a Tap-CounterSet behavior with Target being that App Counter and the Value will be 0.
4)Then for all the audio files that represents the story on the PlayAudio behavior you will need to add a Condition to: App Counter Value is 1. So these files will play only when the AppCounter Value is 1 meaning when the "Read to me" element is tapped.
Alin, you're a genius! It took me a while to add a Global Counter (the User Guide on InteractBuilder was useful), but once I figured that out, your steps worked perfectly. Thank you very much for your help!