C# Manually stopping an asynchronous for-statement (typewriter effect)

前端 未结 4 1412
我寻月下人不归
我寻月下人不归 2020-12-29 18:06

I\'m making a retro-style game with C# .NET-Framework, and for dialogue I\'m using a for-statement, that prints my text letter by letter (like

4条回答
  •  [愿得一人]
    2020-12-29 18:36

    You write what skip / forward button does, so you control it. Just have a check if the length of written text is equal to text that supposed to be written and if yes move as usual if not just display the text in full have delay to be read and move on

提交回复
热议问题