GMS 2 [SOLVED] How to Detect the Amount of Lines in a String


Spencer S

I'm using the function:
Its odd, some things behave differently than I expected, but overall I get it. However, I need to detect how many lines are drawn with randomly sized strings of different words. With the "width" argument in this function, you can specify how many pixels the string should span, and if the width of the drawn string goes over the specified width, then it starts a new line. I need to be able to detect how many lines are drawn, with strings varying in size of random words.

Does this make sense? In other words, I need to be able to automatically detect when the function starts a new line.
Last edited by a moderator: