nineSlice Script [GMS]
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).
Status | Released |
Category | Tool |
Author | LucasNazatoArt |
Made with | Aseprite, GameMaker |
Tags | GameMaker, Pixel Art, script, User Interface (UI) |
Average session | A few seconds |
Languages | English |
Inputs | Keyboard |
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
- Optimized ScriptMar 16, 2019
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.
Wow, thank you so much!
I'm glad that I could help you and good luck with your game!