Returns a copy of a given string repeated a given number of times.


GML Code Example

string_repeat(str, count);

Argument Description
str The string to repeat.
count The number of times to repeat the string.

Returns: String


This function simply returns the same string repeated a given number of times over itself.


GML Code Example

str1 = 'Hello World';
 str2 = string_repeat(str1, 3);

This will set str2 to 'Hello WorldHello WorldHello World'.

Back: Strings

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here