A downloadable tool

Download NowName your own price

A simple tool for drawing panels/boxes  that are divided into 9 parts. Download the example project below to test the script!

nineSlice(sprite, x, y, width, height, stretched)

To use this script you must have a sprite resource with 9 frames containing all slices in the following order: top left, top center, top right, middle left, middle center, middle left, bottom right, bottom center and bottom left.

**There is a free tutorial here that explains how to create this script. Donate if you wish to support me. Thanks!**


Download NowName your own price

Click download now to get access to the following files:

nineSlice Example Project 1 MB
nineSlice.gml 2 kB
nineSlicePanel.png 278 bytes

Development log


Log in with itch.io to leave a comment.

dont know how to say this, but your nineslice tool made me learn a lot about creating codes and arguments. I know GMS2 came up with a new nine_slice system, but yours is more friendly and simpler to use. thanks man.


Wow, thank you so much!

I'm glad that I could help you and good luck with your game!