'My text box engine won't delete the text after progressing to the next text, or it won't keep the clone if it manages to delete the previous text

For the first one, I use broadcast (skip) and wait block under the hide and my whole text box engine.

screenshot 1

For the second one, I use broadcast (skip) under the hide and my whole text box engine.

screenshot 2

So basically, the broadcast skip is to set the counter to 1 in order to make the clone delete itself and make new text.

screenshot 3

I got inspired from seeing another scratch program of DDLC fanmade game. I used to use stamp to make the text engine, but unfortunately it can't be placed in front of a sprite, so I can only rely to clones.

Here's the link to my scratch project: https://scratch.mit.edu/projects/453547552/.

And the reference project: https://scratch.mit.edu/projects/393632602/ (most of the code is in text_story).



Solution 1:[1]

I looked at the code through turbowarp, and found the problem. You prodcast "skip" at the same time you start the next line of text, so you end up setting "counter for skip" to 0, and then back to one. This can be fixed by adding "wait .1 seconds" before all other scripts on your custom text block. Tell me if it works!

Solution 2:[2]

How about you make the background the textbox. You can use stamping there. If you want you can also use mine with credit(Mine uses stamping though, but it is solid. You should try my suggestion to use it.): https://scratch.mit.edu/projects/673830362/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2