Dear AbiGayl- While eagerly awaiting your next tutorial, I started to mess around with some sounds. I uploaded a spoken sentence, set up an actor as a sensor and placed it in the scene... However, when my player touches it, it seems like Stencyl plays it 100 times at once. It has like an echo effect. Is there a way to get the sound to play only once when my player hits the sensor?
Thanks, Enneadeka.
You can use a boolean attribute in either the sensor or player (whichever is the code you are using). Set it to naturally true (i.e. set it to true in "when created"). Then, in your coding that sees if the player is close enough to trigger it, inside check to see if the boolean is true. If it is, play the message and turn the boolean to false. Since you are turning the boolean to false inside, it will only trigger once.
Dear AbiGayl- Thank you so much for taking the time to create and share these with the Kong community. I have learned more from you in 3 days than I ever thought possible. One thing I need help with now is dialogue... any suggestions on where to start? Thanks again
You're welcome :). As for the dialogue, dialogue is generally just a well-disguised button, which is something I will be covering in the fifth (final) tutorial. The basic idea though is to create the dialogue box and then use draw text coding to create the dialogue itself, and then add a quick code so that when the user clicks, advance the text and/or close the dialogue.
I'm glad you got it working :)