Dialogue as a Texture?

Hello again fellow developers!

How has everyone been? It’s been a bit of time since I’ve been on the Development Discussions section, I hope I didn’t miss anything too big.

Well, anyway I’m running into a slight problem.

I tasked myself with making a game in 48 hours (long story I’ll explain later). One of the ideas I wanted to put in was text dialogue.

Nothing too extreme. I just wanted the player to walk up to a character and text would appear. After pressing a button (or a short amount of time) the text would be replaced with text from the player’s character and so on…

Two problems:

  1. I can draw text, but only to the top-left of the screen.
  2. I have no idea where to go from there.

However, I ended up coming up with another idea (that I actually like better).
What I want is for the player to approach a character and a texture will fade in covering the screen. The texture will have the conversation attached to it.
The only thing is, how exactly can I have this happen AND have the player be able to press a button to exit the conversation.

So here’s a basic easy-to-comprehend rundown:

Player walks to character → Texture of conversation fades in → player is engrossed in amazingly written dialogue → Player presses button to exit conversation → fade out → player character comments on dialogue (I’d need to draw text?) → play walks away and gets mauled… er… hugged.

Now I’m going on a limb here and saying that everything here is simple and my brain is just way too fried to figure this out, but I digress.

Just a quick note: all the dialogue is text based. Nothing is sound-based.

As always any help is greatly appreciated and feel free to ask for more information (or more coherent information).

Thanks,

~ Jason

Use a TextRenderComponent or Actor?

So just use the TextRenderComponent to draw a texture onto the screen?

If that’s the case then I have one other question: what exactly would be the appropriate size for the texture to fit the screen universally.

For example I run on 1080p, but someone else runs on a resolution lower would any texture be fine without it getting distorted on lower (or higher) resolutions?

Thanks,
~ Jason