x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Automatic typing text - Is it possible?

Hello. I'm in the process of making a game (much like everyone else here) and I'm stuck on one problem: How can I make automatically typing text via blueprints? Think for example a sci-fi movie where text appears letter by letter for a location or person, or in Legend of Zelda when talking with an NPC, text appears letter by letter. Could this be done with blueprint? If so, how?

Product Version: Not Selected
Tags:
more ▼

asked Aug 19 '14 at 05:09 PM in Blueprint Scripting

avatar image

Overmind5000
6 2 3 3

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

This should be very easy. Simply use the "Get character array from string" node to break your desired input string into separate letters. Then use a simple loop with a delay to get each item from that array and append it to a new "currentstring" value. After every update, do "set text" on your render to text component to update the text with the new "currentstring".

more ▼

answered Aug 19 '14 at 05:22 PM

avatar image

RyanB STAFF
2k 55 24 118

avatar image Overmind5000 Aug 19 '14 at 09:01 PM

alt text

Thank you for the input. I tried, and yet all I get when printing a string was the letter H for the duration of the string instead of "Hello World!". I've tried with a delay input into the loop's exec input, with no dice. I've posted a screenshot of my blueprint, see if you can figure out what I royally flubbed up on.

bptest_001.jpg (158.4 kB)
avatar image RyanB STAFF Aug 19 '14 at 09:05 PM

Your forloop node does not have the white execution pins hooked up. That means it is never getting triggered (a 'pure' call just gets the 1st element as you found). You need to first trigger the forloop and do the printscreen on the loopbody output.

I am surprised it even gave you the letter H hooked up like that, but it sort of makes sense.

avatar image Vector Jan 07 '16 at 08:27 PM

Hi guys,

I was trying to do like you say, but FoorLoop is not looping correctly, on result it printing only last letter.

This is my blue print, if you can see any mistake please tell me or if you have better example

alt text

untitled-1.jpg (274.5 kB)
(comments are locked)
10|2000 characters needed characters left

You can do it like this:

alt text

It's probably not the most elegant solution, but it works.

unreal.png (165.2 kB)
more ▼

answered Jan 18 '16 at 01:00 PM

avatar image

dMsLT
41 1 7 9

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question