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.

If you would like to help consider leaving a tip here or over on Ko-fi. Thanks!

I also have 3D assets available on my Ko-fi page (Blend files, 3D models and textures).

Download

Download NowName your own price

Click download now to get access to the following files:

nineSlice Example Project 1.8 MB
nineSlice.gml 2.7 kB
nineSlicePanel.png 278 bytes

Development log

Comments

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.

(+1)

Wow, thank you so much!

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