Search the Community
Showing results for tags 'trim'.
-
Hi guys, I'm using Flash to create graphics, exporting to a swf file, importing into Texture Packer and then exporting to a JSONArray. If you set your Flash stage size the same as your Phaser stage size, then the workflow is potentially very efficient. I should be able to add all my different sprites to the stage and they will appear in exactly the right spot right? Well this does work, but when I try to change the anchor point I'm running into problems. If I use 'Trim' mode in TP, the anchor point is then based on the Flash stage size, rather than the bounds of the sprite, so this is no good. If I use 'Crop, keep position' mode in TP, the anchor point is now correctly based on the sprite bounds, but the spriteSourceSize values are no where to be seen in Phaser. I can still see the correct spriteSourceSize object in the json file, but it seems because "trimmed" is now set to "false", that these values don't make it into Phaser at all. So yes, I can fix the problem by changing all "trimmed" values to true, but this is not ideal. Has anyone else run into the same problem? Any ideas for how to get around this? Am I doing something stupid? Thanks! Matt.
- 4 replies
-
- flash
- texture packer
-
(and 3 more)
Tagged with:
-
Hi there, I'm trying to make some kind of a worm bit on my map, the problem is that the map is not a tile map, it's a sprite and has p2 physics on it so that I can use it as a sensor. I've been trying to make a bitmapData onto which I copy a circle of the background and overlap it to the map, but it does not work. Any idea is much appreciated.