Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make dialogue boxes?
- theweb389
-
Scratcher
39 posts
How do I make dialogue boxes?
I'm trying to make an RPG game similar to the UNDERTALE and DELTRUNE games if you guys have played those. Anyways is there any way I could implement a dialogue box like this but with capital letters and special characters like periods? Thanks!!
Last edited by theweb389 (Aug. 28, 2023 00:05:09)
- cecode
-
Scratcher
29 posts
How do I make dialogue boxes?
I suggest you look at @griffpatch text engine tutorial, I haven't done it. But I know its prob good.
- looshkin2013
-
Scratcher
6 posts
How do I make dialogue boxes?
define say(number or text)
set instrument to ((2) Electric Piano v)
set [txt1 v] to [0]
set [txt2 v] to []
repeat (length of (number or text))
change [txt1 v] by (1)
set [txt2 v] to (join [(txt2)] (letter (txt1) of (number or text)))
say [(txt2)]
wait (0.05) secs
end
wait until <key [any v] pressed?>
say []
- theweb389
-
Scratcher
39 posts
How do I make dialogue boxes?
I hope my script works!
It might, but I’m saying dialogue BOXES not that
- WindowsMeRules2000
-
Scratcher
500+ posts
How do I make dialogue boxes?
I'm trying to make an RPG game similar to the UNDERTALE and DELTRUNE games if you guys have played those. Anyways is there any way I could implement a dialogue box like this but with capital letters and special characters like periods? Thanks!!It seems like that text engine already has special characters, but here’s how to add capital letters.
In the text engine, notice how each costume has a black version named “(ch)” (where (ch) is the character shown un the costume) and a red version named “(ch)red”. So, if you want to add a new character, follow these steps:
- Duplicate a black costume of another letter. Move it below a red costume
- Update the costume to show the desired letter.
- Rename the costume to the desired letter. (CASE-SENSITIVE)
- Duplicate the red costume of the same letter. Make sure to move it below the costume that we added in step 1.
- Repeat step 2, but for this costume.
- Rename the costume to the desired letter and add “red” (no quotes) at the end.
Hope this helps!
- theweb389
-
Scratcher
39 posts
How do I make dialogue boxes?
I'm trying to make an RPG game similar to the UNDERTALE and DELTRUNE games if you guys have played those. Anyways is there any way I could implement a dialogue box like this but with capital letters and special characters like periods? Thanks!!It seems like that text engine already has special characters, but here’s how to add capital letters.
In the text engine, notice how each costume has a black version named “(ch)” (where (ch) is the character shown un the costume) and a red version named “(ch)red”. So, if you want to add a new character, follow these steps:
- Duplicate a black costume of another letter. Move it below a red costume
- Update the costume to show the desired letter.
- Rename the costume to the desired letter. (CASE-SENSITIVE)
- Duplicate the red costume of the same letter. Make sure to move it below the costume that we added in step 1.
- Repeat step 2, but for this costume.
- Rename the costume to the desired letter and add “red” (no quotes) at the end.
Hope this helps!
Thanks! This helped.
- Discussion Forums
- » Help with Scripts
-
» How do I make dialogue boxes?




