How do I have a dialogue with npc from left continously?

1 favourites
  • 10 posts
From the Asset Store
A complete set of graphical user interface (GUI) to build 2D video games. With wood, nature, & jungle theme
  • Hi guys, i want to talk with an npc.

    the first message works, writing letter by letter from left to right.

    But, the second message just appears completely (not by letter by letter).

    i am using 2 text objects, text 2 on blank, getting the text 1 information.

    My events my actions

    -Keyboard ->on X pressed system, add 1 to chat

    -System -> chat=1

    sub:null text1 , set text to "hello there"

    sub:every 0.05 sec text2, set text to left(Text1.Text,len(Text2.Text)+1) <---- it works!

    -System -> chat=2

    sub:null text1 , set text to "nice to meet you"

    sub:every 0.05 sec text2, set text to left(Text1.Text,len(Text2.Text)+1) <---- not working

    Thanks!

  • Whenever you press X set text2 to "", otherwise it uses the length of the previous text that was there.

  • Whenever you press X set text2 to "", otherwise it uses the length of the previous text that was there.

    I moved the action to the "on pressed X", and that happen only once. But is not working,is not showing the text. .Even with a sub event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Post a screenshot of the events rather than type it out so I can see what you did.

  • I didn't mean move it up there. I meant add an extra action to on space pressed 'Text2 set text to ""' i.e. blank. This clears out the previous text.

  • I didn't mean move it up there. I meant just add an extra event to on space pressed Text2 set text to "" i.e. blank

    The first image, not working.

    The second image, is the same from the start, just showing the first message from left to right, and the second showing the text entirely.

  • Your last event says len(text1.text) instead of len(text2.text)

  • uhmmm... thanks you for your time and help!... *(feels ashamed)*

  • Haha no problem :)

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