Hi, I am building an application that will contain a lot of text. Is there a way on Construct 2 to call the text from a text document like Notepad instead of adding the Text Object each time I need to add some text?
Thank you!
Import your text file as a project file. https://www.scirra.com/manual/141/files
You can access it via the AJAX object (https://www.scirra.com/manual/107/ajax) and use the tokenat() expression to parse out your text. newline often serves well as a token separator.
Thank you, oosyrag!!!!! I was able to achieve what I needed. I really appreciate it!!!!
Develop games in your browser. Powerful, performant & highly capable.
Import your text file as a project file. https://www.scirra.com/manual/141/files You can access it via the AJAX object (https://www.scirra.com/manual/107/ajax) and use the tokenat() expression to parse out your text. newline often serves well as a token separator.