I'm a real noob at coding but I'd really like to make a small adventure game.
I can't figure out how to make the character say something when he looks at a hotspot or tries to interact with it. I didn't find the answer from the manuals or this forum or I just didn't know what to look for so I'm posting it here. Thanks.
You can't have missed it in the manuals..
but DisplaySpeech(CHARID, "Speech");
is used to display speech.
If you want to use it when the character looks at a hotspot you just go onto the hotspot in the editor, go into the interactions editor, click on 'Play looks at hotspot', choose Run Script and put something like DisplaySpeech(0, "Oh look, a tomato."); in the script.
or if u dont like scripting just do what scotch said exept select Display a message, and click new message, type somthing like "oh, look a tomato" and click ok, have you read through the tutorial or the manual?
( ( ( <( -_-)> ) ) )
Yeah I went trough the manual, but the message the displaymessage shows comes in a box and I wanted the character to comment things by speaking. It's not that I don't like coding, I'm just not so good at it yet 8) and scotch, thanks!
theres a checkbox on the front options screen about displaying messages in text boxes.... select it to your hearts desire.
Do you have your character animation, and you have the sound? when character looks or gets or talks or whatever, play sound, play animation loop.
Go to interactions for the hotspot. There will be a drop-down list for each different action(look, talk and interact). If you want your character to say something click on the action you want and select from the drop down list. Some of the actions that might help you are game-display message, the play sound one if it's a talkie.