Pulling in text (e.g. dialogue) dynamically?

Is there a way to pull in external files (txt or json, etc.) and display that information on screen? Maybe through scripting if not through nodes? I would assume this functionality would hook up to Canvas Set Text, unless there is an equivalent to BGE’s obj.text = ‘String’ manipulation method.

Added a new example using scripting at:

And the script itself with comments:

If all goes well you should get the loaded text displayed on screen. Will also look at the logic nodes equivalent. :slight_smile:

4 Likes

Omg, thank you so much! Can’t wait to try it out :smiley:

I love it when he whips out examples like that. :smile:

Keep up the good work @lubos!

2 Likes