Skip to content

WangleLine/NiceSlice

Repository files navigation

NiceSlice

An extended nine-slice library for Gamemaker.

In version 2.3.2, Gamemaker introduced a feature called nine-slice, which allows the user to easily create visual elements that scale to various sizes without distortion.

This is done by scaling, tiling, or otherwise transforming only the connecting pieces of a sprite element, but keeping corners unchanged.

Alt text

However, Gamemaker's native nine-slice feature does not allow the user to change the internal scale of a nine-sliced sprite, which is bad news for anyone trying to, say, render scaled-up pixelart UI elements.

I was so bothered by this, I made a library.

Runner_Xreko967Xy.webm

~ Line