9-patch (Construct 2 Addon)
A downloadable addon
This is a FREE plugin for Construct 2.
Back then, we couldn't set the angle of 9-patch objects due to a limitation, explained by Ashley in this post. But now, this updated plugin allows you to set the angle of these objects, just like in Construct 3! Exciting stuff!
⚠ This plugin supports WebGL only.
Install instructions
Simply download the .c2addon file, then drag and drop the file in to the Construct 2 window.
Development log
- v1.3 (hotfix)1 day ago
- v1.22 days ago
- v1.138 days ago
Comments
Log in with itch.io to leave a comment.
Yes, it seems there’s a minor typo in the code causing this bug. Thank you for your report, this issue will be fixed soon.
Okay, thanks. One more thing: is it possible to add the ability to switch animations? I know it's a bit odd, but it's really useful in some cases.
“Switch animations”?
Do you mean loading an image by URL, just like Tiled Backgrounds?
it might be possible to implement the switching of sprites with the same cutting specifications?
It is possible, but not practical.
Sprites already have a significant impact on project performance, and adding this feature to a delicate object such as 9-patches would make the situation even worse.
You could use Sprites that simulate 9-patches. Of course, they are not the same thing, but it is better than adding a feature that not everyone would expect to have.
You may also want to see this post made on the Construct 2 forum.
Thanks a lot for dropping the good stuff!