Compatible with GM:S 1.4 and GM:S 2.
Draw scalable and resizable sprites anywhere in your project!
Use a format compatible with standard android 9patches!
Easily define 9patches in the sprite editor. Supports any number of patches, for more complex patterns.
To have your sprite registered as a 9patch, simply end the sprite name with '_9p'. To define the patch sections, open the sprite and resize the frame to have a 1 pixel border. The top and left edges are used to define the non-stretchable regions. The bottom and right edges define where text can be placed in the drawn patch.
Drawing a 9patch is a simple as calling the draw_9patch script
draw_9patch(sprite, subimage, x, y, width, height) draw_9patch_text(sprite, subimage, x, y, width, height, text)
Also supports draw_9patch_ext,draw_9patch_text_ext for total control.