I have used the following script in my room1.asc;
function hHotspot2_Interact()
{
PlaySound(1);
cEgo.SayAt(40,258,320, "Text which is displayed goes here");
}
So i have recorded my own sound file of me saying what is inside the speech marks so it plays at the same time.
I know that some people can be quite impatient when playing point and click games expecially if they have played that scene before and click to make the text dissapear before you've had time to read it.
Because i have just used the PlaySound(1); command - it continues playing the sound even after the text has dissapeared. How would i go about stopping the sound that is activated using PlaySound(1); so it stops at the same time as the text dissapears on a click.
Of course i will using this for every part of text upon hotspot click in the game, so where it is now in the room script im guessing to save me inputting this for everything in the game it should go in the globalscript, but nothing in the help topics or forum topics covers this specific area.
Thankyou.
function hHotspot2_Interact()
{
PlaySound(1);
cEgo.SayAt(40,258,320, "Text which is displayed goes here");
}
So i have recorded my own sound file of me saying what is inside the speech marks so it plays at the same time.
I know that some people can be quite impatient when playing point and click games expecially if they have played that scene before and click to make the text dissapear before you've had time to read it.
Because i have just used the PlaySound(1); command - it continues playing the sound even after the text has dissapeared. How would i go about stopping the sound that is activated using PlaySound(1); so it stops at the same time as the text dissapears on a click.
Of course i will using this for every part of text upon hotspot click in the game, so where it is now in the room script im guessing to save me inputting this for everything in the game it should go in the globalscript, but nothing in the help topics or forum topics covers this specific area.
Thankyou.