Dialogue/Text display system

0 favourites
  • 10 posts
From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • Hi all, me again... <img src="smileys/smiley36.gif" border="0" align="middle" />

    I'm hoping someone can help me with a way to display text during my game.

    I'm making an RPG, so there's gonna be a LOT of text during the game, and as much as I'd like to think I'm getting good with Construct, I'm still very much a spirited amateur, so please keep it simple for me! <img src="smileys/smiley17.gif" border="0" align="middle" />

    Thanks in advance

  • Got a .capx?

  • dl.dropboxusercontent.com/u/28499111/spacegame.capx

    But I havent even started a text system yet. Just wondering if anyone knew a simple way to implement one, as I don't know how to work with arrays, or anything complex <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I don't see why you would need an array for a dialogue/text system.

    Create a notification box that can be spawned based on a function call. Then call that function any time you want to have dialogue/text.

    My strategy game uses a notification system that showcases this.

  • I'm sure I read a tutorial somewhere that mentioned arrays... Never mind <img src="smileys/smiley9.gif" border="0" align="middle" />

    Creating the notification box isn't the problem, my problem is getting the text to appear. Would I need to have every piece of text for the layout off-screen? Probably a noob question but I've never done text before <img src="smileys/smiley36.gif" border="0" align="middle" />

  • If it's a game with a lot of text I keep all of the text objects outside the layout on the margin and when needed just teleport the text to the location where it's appearing. It's nothing complex, you will just need a 'Text' object for each bit of text that appears.

  • Thanks, any tips on how to get the text to scroll nicely, rather that just appear in one big lump, and how to only allow the player to move on to the next text once it's finished scrolling?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Using a seperate object for every bit of text is very bad practise. Just use the set text action in the event sheet.

  • LittleStain is correct, using separate text objects is hogging system resources for no reason.

    I would recommend creating a dialogue box, then move that box off-screen or set it to invisible. Then when you want dialogue, have a function that sets the dialogue box to visible, repositions it to X, Y and sets its text (using function parameters). This way you can have one dialogue box work for all dialogue cases that can be shown and hidden on demand.

    Again, I would recommend downloading my .capx to see exactly what I mean.

  • Okay, that makes sense. Thank you very much guys! <img src="smileys/smiley4.gif" border="0" align="middle" />

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