9 slice scaling in Sprite Kit -
does sprite kit have equivalent 9 slice scaling sprites?
i have tried googling, not finding anything, but... it's feature goes different names in different frameworks. missing it.
spritekit supports 9-slices.
the document doesn't tell set size won't work without it, here is:
skspritenode *button = [skspritenode spritenodewithimagenamed:@"stretchable_button.png"]; button.centerrect = cgrectmake(12.0/28.0, 12.0/28.0, 4.0/28.0, 4.0/28.0); button.size = cgsizemake(100.0, 50.0);
Comments
Post a Comment