playing sound when wrong answer
alzawadhadi
Member, PRO Posts: 19
Hi Guys
I have 3 actors, each actor has showing text answer, when the user presses an actor ( if it is correct answer) the sound should be played, and when it is wrong wrong sound should be played
how can I do that ??
Comments
I woukd think that you must beusing three "when touched" attributes of some sort right?
Simply place a "play sound" behavior under this along with where you have a make true or false change attribute. Ding for correct...buzz for incorrect.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
I have tried that
but, both sounds is played when the actor pressed, even though that I have but the wrong behavior on the otherwise
In the rule use the 'otherwise section'. If the correct answer is clicked, play a 'good' sound in the main section of the rule, in the otherwise section play the 'bad' sound.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Could you also just make rules for each answer? Change all to 0...if 1 then play correct sound if 2 play bad? At next question change all to 0 again?
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
could you please detail it ?
I could try to make a small demo tonight for you to recieve in the morning. Im not at home at the moment.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
do what this guy said
I did that, but the both sounds working when the answer is correct
see this is my rules
any correction ?
could you please clarify ?
Do what this guy said 2.
Can you type out or post a screenshot of the entire tableCellValue expression? And also, what are the possible values of that expression? Is it possible that your game.com... attribute could equal more than one value in a short period of time (e.g. a second or two) and therefore trigger the rule twice? What happens when you put a Log Debugging Statement in both sections of that rule (the correct portion and the incorrect/Otherwise portion)? If you open the Debugger window do you see both statements or only one?
Is it possible that you have duplicate rules in an actor or duplicate actors in a scene?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User