Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Dialouge Engine
- The_Floppy_Disc
-
66 posts
Dialouge Engine
Hi! I made this engine a while ago, and now it has 100 views, so I thought I'd post about it here so you can use it. 
Here's the link:
Dialouge Engine
So, this is a text engine. It can be used to create interactions between characters in games or animations.
You can use the @ key in the function to go down a line. If you don't, It will look something like:
I used @toopgobo's sprites for the text, but I changed some of the code and added the @ command.
There are custom blocks that you can use to make your dialogue.
You can repeat this as many times as you want!
Important note: It will not print the last character in the text box. Just make it a space or something.
You don't have to wait until z is pressed, you just have to have a wait block. Once the wait is over, the text will be cleared and it will show the next thing.
There are 3 sprites. The text (what makes the clones), the box (the background for the text), and the character (who is speaking). Only the text sprite is functional.
If you want multiple lines, you do this:
It will look like:
It will automatically go down one line when you use @.
That's all! If you have questions, let me know in the comments, and please let me know how I can improve!

Here's the link:
Dialouge Engine
So, this is a text engine. It can be used to create interactions between characters in games or animations.
You can use the @ key in the function to go down a line. If you don't, It will look something like:
Sorry. This will n
ot work
There are custom blocks that you can use to make your dialogue.
when green flag clicked ::cat
[what you want to say] at position \(x, y) (1) (1) Time between letters: [0.01] seconds ::custom
wait until <key [z v] pressed>
broadcast (reset text v)
[another thing you want to say] at position \(x, y) (1) (1) Time between letters: [0.01] seconds ::custom
You can repeat this as many times as you want!
Important note: It will not print the last character in the text box. Just make it a space or something.
You don't have to wait until z is pressed, you just have to have a wait block. Once the wait is over, the text will be cleared and it will show the next thing.
There are 3 sprites. The text (what makes the clones), the box (the background for the text), and the character (who is speaking). Only the text sprite is functional.
If you want multiple lines, you do this:
[line 1 @ line 2] at position \(x, y) (1) (1) Time between letters: [0.01] seconds ::custom
It will look like:
line 1
line 2
It will automatically go down one line when you use @.
That's all! If you have questions, let me know in the comments, and please let me know how I can improve!

Last edited by The_Floppy_Disc (Feb. 17, 2025 17:42:36)
- The_Floppy_Disc
-
66 posts
Dialouge Engine
This might be helpful. I'm using this for the RPG I'm making, but it can also be used for other things. I saw someone use this for introducing their OC.
- Discussion Forums
- » Show and Tell
-
» Dialouge Engine