How do I add character dialogue to my game?

0 favourites
  • 5 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • I want to have little moments of dialogue, where it will show a portrait of a character and their text. For the text to continue to the next page, I want the player to press "Enter" and it will display a new bit of text, similar to if you were playing Fire Emblem on the Gameboy Advance and you pressed our "A" button to continue the dialogue. However, I've found a problem. When I add a sub event, it only gives me "key code is down" and "key is down" for the keyboard object. How can I have a system similar to the old Gameboy games?

  • try this :

    • first, write your full dialogue somewhere, then use "mid()" expression to 'cut' your sentence.
    • then after pressing Enter, use "mid()" again to show the rest of your sentence.
  • Uhm, I'm confused, where and how would I use mid()?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Easier to post your capx. Otherwise we have no idea how you're storing your text (or if you even are yet), etc.

    Also you can't have a trigger in a subevent that doesn't make sense, which is why C2 filters out some selections in subevents.

    As for mid(), do you know what it does? It's used to extract some text from within a larger block of text.

  • Depending on how much interaction you'd like using the dictionary object with tokenAt would probably be easiest.

    Just add one to the tokenAt expression every time enter is pressed using a variable.

    If this sounds confusing and or difficult I think there are multiple examples of a simple dialogue in the FAQ-thread..

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