Discuss Scratch

tntman24
Scratcher
100+ posts

Text Engine

Hey Everyone!
I'm working on a game right now, and I kinda need a text engine. I tried looking, but didn't find any that fit the style I needed.
I want the dialogue engine to be kinda like undertale's dialogue. Except with Arial font.
Please help me, I don't really have much time to make this with school in the way
Janhoygato
Scratcher
100+ posts

Text Engine

I have one, however it has a couple restrictions.

1.It only works on one line.(A workaround is to make each line by itself)

2.It requires you can do every single character(of text) before you use it.

3.It has no delay(Can be fixed by adding a slight delay though)

4.Works on pen (A workaround is replacing
stamp
with
create clone of [myself v]
however)
define print (thing) at x(x) y(y) size(siz) linespacing(linespacing) centered?(Yes/No) colour(C) brightness(B)
set [color v] effect to (C)
set [brightness v] effect to (B)
set size to (siz)%
switch costume to [9 v]
set [my variable v] to [1]
if << (Yes/No) = [No]> or <(Yes/No) = [False]>> then
go to x:(x) y:(y)
end
if << (Yes/No) = [Yes]> or <(Yes/No) = [True]>> then
go to x:(((length of (thing)) - ((20)*(linespacing)))- (15)) y:(y)
end
repeat (length of (thing))
switch costume to (letter (my variable) of (thing))
change x by ((20)*(linespacing))
stamp
change [my variable v] by (1)
end
As far as I am aware, there isn't a text engine that runs on a singular costume since that would take lots of advanced coding skills in Scratch.

Last edited by Janhoygato (Sept. 2, 2025 22:03:03)

GamingCat12345
Scratcher
100+ posts

Text Engine

(I didn't realize how much griffpatch has on YT until saying this lol) Griffpatch has a text engine tutorial on YT, and the text box background and text font can be whatever you like
tntman24
Scratcher
100+ posts

Text Engine

Janhoygato wrote:

I have one, however it has a couple restrictions.

1.It only works on one line.(A workaround is to make each line by itself)

2.It requires you can do every single character(of text) before you use it.

3.It has no delay(Can be fixed by adding a slight delay though)

4.Works on pen (A workaround is replacing
stamp
with
create clone of [myself v]
however)
define print (thing) at x(x) y(y) size(siz) linespacing(linespacing) centered?(Yes/No) colour(C) brightness(B)
set [color v] effect to (C)
set [brightness v] effect to (B)
set size to (siz)%
switch costume to [9 v]
set [my variable v] to [1]
if << (Yes/No) = [No]> or <(Yes/No) = [False]>> then
go to x:(x) y:(y)
end
if << (Yes/No) = [Yes]> or <(Yes/No) = [True]>> then
go to x:(((length of (thing)) - ((20)*(linespacing)))- (15)) y:(y)
end
repeat (length of (thing))
switch costume to (letter (my variable) of (thing))
change x by ((20)*(linespacing))
stamp
change [my variable v] by (1)
end
As far as I am aware, there isn't a text engine that runs on a singular costume since that would take lots of advanced coding skills in Scratch.
Ok…
Would you happen to have a project where this code is?
YumyanMeowpaw
Scratcher
29 posts

Text Engine

.

Last edited by YumyanMeowpaw (Sept. 3, 2025 14:51:20)

YumyanMeowpaw
Scratcher
29 posts

Text Engine

tntman24 wrote:

Hey Everyone!
I'm working on a game right now, and I kinda need a text engine. I tried looking, but didn't find any that fit the style I needed.
I want the dialogue engine to be kinda like undertale's dialogue. Except with Arial font.
Please help me, I don't really have much time to make this with school in the way
I can help. Click Here for it. It's un UnderTale text engine.

Powered by DjangoBB