dialogue script (speed of dialogue???)

Started by SinSin, Fri 13/04/2007 21:58:56

Previous topic - Next topic

SinSin

Hello folk its Sin the Problemed guy again

I was just wondering about if i can speed up a set characters speech speed
I want this person to say a word but i want each letter to appear one after the next like this
P
PE
PEO
PEOP
PEOPL
PEOPLE

Each letter gradulently spelling the word i want 
I have written the dialogue but when i test it each letter takes a letter  2 seconds apprx to appear   I was thinking more of a tenth of a second lol   any ideas folks ????

Sin
Currently working on a project!

GarageGothic

This is easier done by scripting a whole new speech funtion, at least if it's something you use more than once in the game. Yes, you can set the text speed with the game.text_speed variable, but the problem with that solution is that text change speed is also based on text length. In your case it would mean that the pause became longer for every letter added. A workaround could be to add spaces for the remaining letters ("P     ", "PE    ", "PEO   ", "PEOP  ", "PEOPL ") but I'm not sure how that registers in the engine. The text_speed would of course have to be set to normal before the full word is displayed or it will flash by in an instant.


SinSin

#2
i'l give it a go
Nope it didnt have the effect i would have liked thanx for trying tho
Currently working on a project!

GarageGothic

Too bad. I guess you'll have to write a function to do it for you (don't worry, it's not too hard). Perhaps this thread can give some ideas.

ciborium

What about this?

Code: ags

cEgo.Say ("P");
Wait(5);
cEgo.Say ("PE");
Wait(5);
cEgo.Say ("PEO");
Wait(5);
cEgo.Say ("PEOP");
Wait(5);
cEgo.Say ("PEOPL");
Wait(5);
cEgo.Say ("PEOPLE");

SupSuper

#5
Nah, the game would still stop accordingly for each Say() before the Wait(), so each letter would show up slower than the last.
Programmer looking for work

strazer

Then use a text overlay as described in the thread GG linked to.

SMF spam blocked by CleanTalk