GameMaker (2.3)
Icon

Script draw_text_properly

Appsurd

You must be logged in to obtain assets

Description

Introduction

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.

Advantages

  • Works very simple and comparable to draw_text_ext
  • Helps to improve workflow when dealing with multiple languages

Disadvantages

  • Text might become unreadable as it can become very small

Example

Draw Event

/// 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);

Conclusion

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! :)

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.1.0. Published August 26, 2021

Update to GMS 2.3+

Privacy Policy
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait