kop9000's Recent Forum Activity

  • Ok I found a method :

    It uses 2 texts objects, "TextSample" which contains the full text, and "Dialog" which display the text character by character;

    "Dialog" uses two variables : TypeSpeed, which is the typewritting speed, and TypeLen, which is used to check the progression of the typewritter;

    In this example on Enter pressed, it repeats "the number of characters in TextSample" times this action:

    Wait Dialog.TimeSpeed x Loopindex seconds, set Dialog text to "Self.TypeLen" numbers of characters from TextSample starting from the left, then add 1 to TypeLen, so during the first loop it will return the first character, second loop, two characters, etc;

    The sub event check if the last character from the right in Dialog is a space or not, if not, it will play a sound;

    Btw you can replace TextSample by a global variable to access it from anywhere in your project, and also give to Dialog a boolean to confirm it is currently typing to avoid any trigger problem

    could you post the file of this example here?

  • I either have to use the method that the developer himself gave me, although it also sometimes works poorly in some cases or ask the developer to add the action "print text at the speed of one letter" and add the condition "if the letter is writing" or something similar to this condition

  • Okay I found why my system don't work, len expression detects how much characters the typewriting text will have from the beginning, where it detects current lenght with the addon I use, I think Sizcoz method will work better on C3 then

    Unfortunately, the sizcoz method is not suitable

    The fact is that here, with different text lengths and the same seconds, it works either faster or slower. that is, if the text is different and the seconds are the same, it should reproduce with the same speed of sound but for much longer i.e.

    12 characters - 12 times the sound

    5 characters - 5 times the sound

    and all this at the same speed no matter how many seconds it costs

    but in this example from sizcoz he types different tex always with the same duration but either the sound is faster or slower

  • Can you post a screenshot of the English version of Construct? I don't understand the language on your screenshot so it would be easier for me to help, sorry

  • oh, I forgot to put in one of the conditions "len" but the problemma all the same remains

  • Okay here it is :

    Just like ome6a1717 said, you need to use a variable that is compared to your text length, in my example the variable is Textlen, for the text I use a third-part plugin for typewriting, but it should be almost the same for C3 typewriting : while the text is animating, it checks if the variable value is smaller than your text length with len(yourtext.text), which will update the variable and play a sound;

    The sub-event is for checking if last character is a space or not, by comparing the first character starting from the right of the text; it will play a sound only if the character isn't a space, if you don't need that you can remove the sub-event

    https://drive.google.com/open?id=1hIYFrbfaDNu7CcHOMnmUODDsFVouGhcs

    I did everything as you wrote, but he still continuously plays the sound

  • hey please

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ome6a1717

    Tomycase

    I want to ask you to upload some of your examples. with different methods and options so that I can check and choose the best option for my project

    For earlier thanks

  • If every 0.5 sec ist fast enough for the typewriter:

    still with plugins much better. In the new example, I will always need to change the text in the variable, and this is a lot of lines in action, especially when there are a lot of dialogs

  • I have to constantly count how many characters I have in the new text and write it in "length" every time

    How can this be simplified? can it be done so that he himself counts each time the number of characters in the new text?

  • everything is fine, but you understand that sometimes the text will be longer or shorter if, for example, you make a game with dialogs. and sometimes at some point you need to do something for example "oh ..." printed slower

    What to do in this case?

  • please attach an example

kop9000's avatar

kop9000

Member since 4 Nov, 2015

Twitter
kop9000 has 3 followers

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies