Stopping sound
auntieginzy
Member Posts: 50
I did have a discussion thread about this a year ago. I have since emigrated and got back to the app but still have the same problem.
I am making an app with 26 scenes, each one a letter of the alphabet and each with a sound associated. When I go to the following scene, the sound from the first scene continues. Someone sent me the following info:
However, I can't find where it says Busy? Please would someone explain in really simple terms for me ( a really simple granny!)Thanks
a boolean sceneAttribute: Busy (unchecked)
on every scene
on Actor that registers the touch:
Rule: when
Event: touch is pressed
Attribute: scene.Busy is false
--Play Sound
--changeAttribute: scene.Busy To: true
Rule: when
Attribute: scene.Busy is true
--Timer: After: duration of sound
----changeAttribute: scene.Busy To: false
on NextButton:
have its Color Alpha set to: 0
Rule: when
Attribute: scene.Busy is true
--changeAttribute: self.Color.Alpha To: 1 (or interpolate to 1)
Rule: when
Event: touch is pressed
Attribute: self.Color.Alpha is 1
Attribute: scene.Busy is false
--changeScene
I am making an app with 26 scenes, each one a letter of the alphabet and each with a sound associated. When I go to the following scene, the sound from the first scene continues. Someone sent me the following info:
However, I can't find where it says Busy? Please would someone explain in really simple terms for me ( a really simple granny!)Thanks
a boolean sceneAttribute: Busy (unchecked)
on every scene
on Actor that registers the touch:
Rule: when
Event: touch is pressed
Attribute: scene.Busy is false
--Play Sound
--changeAttribute: scene.Busy To: true
Rule: when
Attribute: scene.Busy is true
--Timer: After: duration of sound
----changeAttribute: scene.Busy To: false
on NextButton:
have its Color Alpha set to: 0
Rule: when
Attribute: scene.Busy is true
--changeAttribute: self.Color.Alpha To: 1 (or interpolate to 1)
Rule: when
Event: touch is pressed
Attribute: self.Color.Alpha is 1
Attribute: scene.Busy is false
--changeScene
Comments