Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hey, when you say broken, what part of the functionality breaks? The whole thing? Also, what modifications did you make? It'll help me figure out the issue :)

i made function that takes string and calls your type writer effect. and also added bool and checked to loop the same text with typewriter effect. and if i add that function i added into button and if i press it "once" everything is fine. but i wanted it to be like some dialogue system in some 2d games(where user could choose to see the full text being showed slowly with TW effect or just skip and new text will override and start the effect again). When i try to pause the current type effect and start new(even if clearing both output text and input text.) it becomes broken and shows text like this :
For eg.
Text 1 : Hello World!
Text 2 : This is simple effect.
But output will be like this(if i try to stop text 1 and start effect on text 2) : HeThliol Wis orlsim..... and so on.
Please help. I could send you the script file if you wanna see the code.
Thank you

From your description it sounds like the first co-routine isn't ending before the new one starts, so it's running them simultaneously. But you're welcome to send me you're script, so I can take a better look

(2 edits) (+1)

Here is the script : [LINK REMOVED]
Please try it and give feedback and fixes.


EDIT : I found solution for it and fixed it. I also created my own typewriter effect. Thanks to your script to help me understand the effect.