GameMaker (2.0 - 2.2.x)
Icon

Simple String Formatting

BenStigsen

You must be logged in to obtain assets

Description

An easy way to format strings by using curly braces.

x = "Hello";
y = "World";

global.a = "Hello";
global.b = "World";

// Simple Formatting (best performance)
format("{}, {}", x, y);

// Positional Index Formatting
format("{1}, {0}", y, x);

// Variable Formatting
format("{x}, {y}");

// Global Variable Formatting
format("{$a}, {$b}");

// Escaped Curly Braces
format("Hello {|x}");

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.3.3. Published December 31, 2019

  • Optimized code by removing unnecessary replacements

  • Improved escape character for formatting (curly) braces

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait