Appsurd presents a simple but useful script for GMS 2.3+ which scales your text in case it does not fit on a line any more. Works comparable to draw_text_ext but does not add line-breaks, but instead draws the text in a smaller font. Of course the script is well-commented and you may use it for free.
/// Draw the text and boxes draw_set_color(c_white); draw_rectangle(100,110,400,128,false); draw_rectangle(100,210,400,220,false); draw_set_color(c_black); var txt = "A short sample text, script made by Appsurd"; // Standard script draw_text(100,110,txt); // New script draw_text_properly(100,210,txt,300);
If you have any suggestions or found a bug, please let us know so we can improve our product! Rating and sharing will be appreciated! :)
Update to GMS 2.3+