Text Engine

id: 750105

category: Help with Scripts

posts: 8

Hi, I'm using a text engine by @chippysmall4 and it's working on the original copy/past project but when I move the code into my own project it doesn't seem to work anymore. Here's the original project: https://scratch.mit.edu/projects/961870333/ and here's my project where there is supposedly a type of problem https://scratch.mit.edu/projects/980009866/
Chippy is helping me figure out what's wrong although it's kind of confusing as I'm more of a visual learner
It uses clones, if you type over 200 letters or clones are used elsewhere in the project, then it will break the text engine

cookieclickerer33 wrote:

It uses clones, if you type over 200 letters or clones are used elsewhere in the project, then it will break the text engine
Addition: A way to fix this would be to use stamping instead of clones. Stamping can be found in the pen extension.

NamePending_ wrote:

cookieclickerer33 wrote:

It uses clones, if you type over 200 letters or clones are used elsewhere in the project, then it will break the text engine
Addition: A way to fix this would be to use stamping instead of clones. Stamping can be found in the pen extension.

They were originally using a pen but they told me to delete that

Sakurabloomstar wrote:

NamePending_ wrote:

cookieclickerer33 wrote:

It uses clones, if you type over 200 letters or clones are used elsewhere in the project, then it will break the text engine
Addition: A way to fix this would be to use stamping instead of clones. Stamping can be found in the pen extension.

They were originally using a pen but they told me to delete that
That’s because pen is always layered behind all sprites
1029289 1029289 loading
I cleaned up the code that i saw, hopefully you can work from here?
https://scratch.mit.edu/projects/989331060

Sakurabloomstar wrote:

I got help for the text itself (tysm @1029289 ^ ^). If I wanted the text engine to react to an answer how would I do that?
e.g
if <(answer)=(test)> then 
[Print Text Slow (This is a test.) (x) (y) (s) (c) (b) (100) ]


else

end

That is not the actual block ofc but Scratchblocks does not have a Print Text Slow block as it was custom

Sakurabloomstar wrote:

I got help for the text itself (tysm @1029289 ^ ^). If I wanted the text engine to react to an answer how would I do that?
e.g
if <(answer)=(test)> then 
[Print Text Slow (This is a test.) (x) (y) (s) (c) (b) (100) ]


else

end

That is not the actual block ofc but Scratchblocks does not have a Print Text Slow block as it was custom
Replace the When I Receive with
when I receive [start v]
broadcast [erase all v]
wait (0) secs
ask [question?] and wait
if <(answer ::sensing) = [abc] > then
Print Text (text) () () () () () ::#ff6680
end
And Add
when I receive [erase all v]
delete this clone