Page 2 of 3
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 7:27 am
by The Writer
okay i think i get it a little better now that i'v e read it a few more times but that last bit was a little cofusing.
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 7:47 am
by The Writer
so with the regester sound command can that be somthing that can be paired with script, like text box words, so that the character say it with the voice over and the words also apear on the screen? and also do you have to do the all the stuff you wrote out or was that just diffrent examples? i am sorry if this is a stupid question but i am not sure about it.
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 9:23 am
by arcones
No, it's not a stupid question. You can have a level trigger that simultaneously stops your movement while playing the sound (I believe you can do that) and use the echo command to prompt the text as well ;D
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 10:47 am
by The Writer
okay so... what? i'm sorry but... what?... could you possibly give me an example of like the codeing you would use to do that because i think that might help me understand better... if not thats okay... thank you so much for your help!
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 12:28 pm
by DrChef
the simplest way to make a character "talk" would be this: (untested, but SHOULD work)
Code: Select all
level_trigger_1 = [sound 10; edittoggle; movespeed 0; edittoggle; echo "My name is DrChef"; sleep 2000[edittoggle; movespeed 100; edittoggle]]
this tells it to play a sound you've registered (saying 'my name is DrChef')
this stops the player from moving by doing the movespeed command quickly in editmode.
Code: Select all
edittoggle; movespeed 0; edittoggle;
displays text
this part makes the player able to move after 2 seconds, or whatever the length of your sound file is.
Code: Select all
sleep 2000[edittoggle; movespeed 100; edittoggle]
You can make it an actual conversation by adding gui screens so the player can make choices as to what they can say
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 1:05 pm
by The Writer
okay yes that makes much more sense thank you very very much! now i think i only have one more question: is there a specific location that i need to put the sound bite in? and if so where? thank you all so very much for all your help!!
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 1:25 pm
by DrChef
you should put your sounds in a folder inside packages/sounds
Re: walkthroughs for sandbox?
Posted: July 27th, 2011, 1:30 pm
by The Writer
okay thank you so much for all you help, if i have any more questions i'll ask but for now it hink i have quite enough to play around with. thank you all so much!
Re: walkthroughs for sandbox?
Posted: August 19th, 2011, 5:43 pm
by HYTutorials
If you are new to this software and need help, check out my tutorial channel.
http://www.youtube.com/user/harid001?feature=mhee
Cheers,
HyTutorials
Re: walkthroughs for sandbox?
Posted: September 7th, 2011, 9:26 pm
by The Writer
oh yes that help so much thank you!