Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixelbox

Create 2D games in JavaScript, made easier · By Cedric Stoquer

9 Slice Sprites

A topic by jhax created Apr 14, 2021 Views: 252 Replies: 2
Viewing posts 1 to 2

Hi,

I've downloaded the 2.1.0 version of the PixelBox editor to have a bit of a play around with some of the newer features. But I can't quite figure out how to get the 9-slice sprite stuff working. 

I created a blank 27x27px png to experiment with, but I can't figure out how to edit the slice points. I'm only getting this in the slice window after clicking "Convert to nine-slices"


If I close and reopen the project it seems to change the png back to a normal image as well, although I'm not sure if this is just a knock on from now being able to define where it's slicing.

Sorry if this belongs in bugs, but I thought it was probably just me missing something!

Thanks for reporting, this sounds like a bug in Pixelbox. I will have a look.

When creating a new slice config, Pixelbox will attempt to create a file slicesConfig.json in the project”s assets directory. It might be this part that fails for some reason?

Do you see this file in the assets directory? If not, you can try to manually create this file and edit its content with the following:

{
  "_type": "Nine slices config",
  "sprites": {}
}

Then try to close and reopen the project.

(1 edit)

Manually creating the file has sorted it, thanks very much!