i have also included a text limiter into the system.
//---Scr_kstringget(Width_Of_String)---//
//---GML Script made by, Kyanite Entertainment---//
{
if (!variable_local_exists("kstring"))
kstring="";
if keyboard_string!=""
if string_width(keyboard_string)<argument0
kstring=keyboard_string;
else
keyboard_string=kstring;
else
if string_length(kstring)<2
kstring=keyboard_string;
else
keyboard_string=kstring;
return kstring;
}
Now for the draw event, remember to include the first argument of this script, otherwise it will act as if the limit is 0, and nothing will be typed.//---Draw Event---// draw_text(x,y,Scr_kstringget(90));//draws the script with a text width limit of 90 pixels.
"treat unitialized variables as 0" does not need to be true.
and as far as i know, this script is working!
Edited by killerheath, 19 December 2011 - 03:51 AM.











