Discuss Scratch

WAGameman
Scratcher
100+ posts

Speech Bubble Effect

So im making a cool project, it includes sprites talking to each other, i want to make it so that when the sprites talk, that each characters come up one at a time! for example, if someone says: Hello! i want to make it so H shows first, then 0.1 seconds later, e comes up, but it takes a lot of work to do that,! Is there a shortcut or something or another faster way to do it?

when I receive [Danger]
say [S] for (0.1) secs
say [St] for (0.1) secs
say [Sto] for (0.1) secs
say [Stop] for (5) secs

Last edited by WAGameman (June 27, 2016 02:16:22)

qwazwsx
Scratcher
33 posts

Speech Bubble Effect


I made a project to demonstrate this

https://scratch.mit.edu/projects/114935543/

when green flag clicked
ask [What text should I say?] and wait
set [input v] to (answer) // set 'input' to whatever you want to be spoken
set [iteration v] to [1] // dont mess with this, just make sure it is set to 1
set [TextDisplayed v] to [] // also dont mess with this, just set it to nothing
repeat (length of (input))
set [TextDisplayed v] to (join (TextDisplayed) (letter (iteration) of (input)))
say (TextDisplayed) for (0.1)
change [iteration v] by (1)
if <(length of (TextDisplayed)) = (length of (input))> then //if we have spoken the entire thing display it for a little longer
say (TextDisplayed) for (5) secs
end
end

Hope this helps!
just ask if you need help

Last edited by qwazwsx (June 27, 2016 02:43:29)

FlashAhAhh
Scratcher
39 posts

Speech Bubble Effect

I made a project that does it here RPG Speech Bubble Effect

Here is the code that drives it.

Last edited by FlashAhAhh (June 27, 2016 02:51:21)

WAGameman
Scratcher
100+ posts

Speech Bubble Effect

FlashAhAhh wrote:

I made a project that does it here RPG Speech Bubble Effect

Here is the code that drives it.

how do i activate the script?
FlashAhAhh
Scratcher
39 posts

Speech Bubble Effect

WAGameman wrote:

how do i activate the script?

You use the Block we Defined (SpeechBubble) whatever you put in the string will be said in a speech bubble.



Last edited by FlashAhAhh (June 27, 2016 02:54:56)

FlashAhAhh
Scratcher
39 posts

Speech Bubble Effect

Sorry - I just realised I hadn't shared the project! try it again - RPG Speech Bubble Effect

Powered by DjangoBB