Originally Posted By: 3run
I would edit Dico's example a bit laugh
Here it comes (thank you Dico):
Code:
// empty string:
STRING* texttest = "";

// text to be displayed:
TEXT* mytext = {
	// set the string:
	string = texttest;
	// set flags:
	flags = SHOW;
}

// main game funciton:
function main (){
	// open the text file:
	var fhandle = file_open_read("my.txt");
	// read it's content, and save it into the string:
	file_str_read(fhandle, texttest);
	// close the text file (make sure, you close it after opening):
	file_close(fhandle);
	// place text at the far right corner:
	mytext.pos_x = screen_size.x + 5;
	// wait one frame (I'm not sure yet, but without this it causes error):
	wait(1);
	// get the width of the string:
	var width = str_width(texttest, NULL);
	// loop:
	while(1){
		// if text if gone to the left corner (play/remove 200 if needed):
		if(mytext.pos_x < -width + 200){
			// set it back to the upper right corner:
			mytext.pos_x = screen_size.x + 5;
		}
		// scroll text to the left:
		mytext.pos_x -= 10 * time_step;
		// place text at the far right corner:
		mytext.pos_y = screen_size.y - 50;
                // wait one frame:
		wait(1);
	}	
}


I hope this helps! Good luck!


Greets


you're the best wink