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:
		if(mytext.pos_x < -width){
			// 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!

Edit: removed "200", cause that was causing problems with small text!!


Greets

Last edited by 3run; 05/07/13 12:29. Reason: FIXED BUG!

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung