How to keep the typerwriter text speed in a fixed speed?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
Endless track challenge with unique stages and vehicles.
  • Hello everyone, I'm new here and I'm working on a small project which including many different stories.

    When I try to perform a typerwriter text effect, I'm using this expression: len(Self.PlainText) / 5 for Duration field.

    But then I tried to test this effect, I found that the longer text it is, the quicker the text will displayed. Different length texts have differnt speed of the typerwriter speed.

    My text reads the value form the array, I'm not sure if it is the reason affecting the speed.I just want to set the typewriter speed as a fixed speed.

    Does anyone who knows how to fix this problem?

    Many many thanks!!!

  • Here's how I do it:

    Type_Speed is a global var set to 0.03 (or whatever speed you want).

    The important part is setting the text to the sprite font before you run the typewriter text e.g., Sprite font set text: "Hello World!"

    Hope this helps.

  • Here's how I do it:

    Type_Speed is a global var set to 0.03 (or whatever speed you want).

    The important part is setting the text to the sprite font before you run the typewriter text e.g., Sprite font set text: "Hello World!"

    Hope this helps.

    Hello Pigpud, thank you so much for your advice!

    I've tried but I still failed.

    I think this issue is mainly on the array, although the feature I'm working on is about the story, but the text displayed is from an array which includes different languages, so I doubt the issue is here, for the text part, it is from an array instead of a fixed text.But I don't know which part is wrong and how to fix it.

    Here is the screenshot of my part, hope this can help to clarify my situation:

  • 0.3*len(Self.PlainText) is wrong because it takes the current text instead of the text it is supposed to be typing. Replace "Self.PlainText" with the array.at() from the top part.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 0.3*len(Self.PlainText) is wrong because it takes the current text instead of the text it is supposed to be typing. Replace "Self.PlainText" with the array.at() from the top part.

    It worked!!! Thank you so much!!! :-D

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)