I have a single text box and various images in my layout.
Depending on what image is clicked I'd like the text box to load a different external text file. I have everything set up but can't seem to find a way to load different text files into the sane text box (one at a time obviously )
Can anyone point me in the right direction please? Any help would be appreciated.
Develop games in your browser. Powerful, performant & highly capable.
You could use Ajax with project files...
Import the external text files to the Files folder.
Add the Ajax object to your layout.
When the image is clicked, call the Ajax action - 'Request Project File' and choose the appropriate text file.
Then use the Ajax event, 'On Completed' to set the text box to AJAX.LastData.