LPAD (left pad) and RPAD (right pad) are functions used to add padding characters to the left or right side of a string up to a given length. The functions are used as follows:

lpad(text, pad_char, length)
rpad(text, pad_char, length)

End User Licence Agreement (EULA).

Changes in 1.1.0

Changed scripts to allow an integer to be passed in as the text value.

Version 1.1.0. Published July 10, 2014

Created with GameMaker: Studio v1.99.170

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Robert M 13 September 2018

Fix your bug man

This function worked once I fixed the bug where the parameters in the lpad function for the length and pad characters were reversed. Time saving by downloading function instead of writing my own. Zero.

Package contents

Loading, please wait

What is the issue?

Back to Top