valueerror Posted October 2, 2014 Share Posted October 2, 2014 i tried every setting in texture packer and i tried spritesheetpacker too.. it seems i can't get rid of the border you see in the screenshot.. i also tried to set the space between the images to 0 but this changes nothing but introduces more display problems thx Link to comment Share on other sites More sharing options...
lewster32 Posted October 2, 2014 Share Posted October 2, 2014 This is likely due to there being some transparent pixels at the edges of your tiled image. You'll need to open it in an editing program and ensure the edges are sharp and clean, and then you may want to add a bit of extra padding to the images so the pixels repeat at the edges to ensure that you get no gaps when scaling and/or moving them. TexturePacker has the option to do this for you. Link to comment Share on other sites More sharing options...
valueerror Posted October 2, 2014 Author Share Posted October 2, 2014 hmm.. but adding the same image (png) to the game without the atlas works.. so it must be something happening at the creation of the atlas.. im going to try different images later and see if i can pinpoint the problem Link to comment Share on other sites More sharing options...
valueerror Posted October 5, 2014 Author Share Posted October 5, 2014 puhh... i tried it with different images and different sizes .. it is really confusing.. now it is working in chromium on my desktoppc but not in firefox (there you see the borders) and it is not working on my tablet (chrome) too.. if i load the same image without the atlas it works as expected.. i tried the option "extrude" in texturepacker (set it to 1 px) and now it works everywhere.. thx.. (but this function is not supported by spritesheetpacker which would be free) Link to comment Share on other sites More sharing options...
valueerror Posted October 9, 2014 Author Share Posted October 9, 2014 the feature is called "extrude" in texturepacker.. it seems to add 1px of collor around my tilesprite or something similar.. the problem is.. without it i can not use a tilesprite from the atlas.. is there a way to get my sprites to work without this texturepacker feature? can i prepare my sprites in some way? they are absolutely perfect .. no transparent pixels at the borders .. Link to comment Share on other sites More sharing options...
valueerror Posted October 9, 2014 Author Share Posted October 9, 2014 haha.. i opened the json file and edited the metrics of the specific sprite from 448x448 to 447x447 and now the gap is gone ^^ Link to comment Share on other sites More sharing options...
Recommended Posts