A downloadable asset pack

Buy Now$2.00 USD or more

Create boxes of arbitrary size based on any sprite partitioned into 9 even segments.

Sprites with minimum edge & center detail can use the "stretch" version to achieve precise / animated results.

Just two basic scripts, check out my free tutorial video and learn how to put this together yourself, avoiding any need to buy! (But if you liked it and the work I do, maybe consider buying it or supporting my work on Patreon!)


Buy Now$2.00 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $2 USD. You will get access to the following files:

GMS2 Project 31 kB
NineSliceBox.gml 1 kB
NineSliceBox_stretch.gml 1 kB
ExampleSprite.png 277 bytes


Log in with itch.io to leave a comment.

Hey i followed the tutorial but i think you forgot to show us how to use the script in the room. I saw how you have the slice object but we never saw what the object was using.

Is it possible to use this in the GUI layer somehow?

sure just call it in the draw gui event.