Rafarel Posted May 6, 2014 Share Posted May 6, 2014 Hello there ! I have an issue with an animated sprite.My sprite is drag enabled and constrained in a drag rectangle.You can see the sprite bounds and the drag rectangle in debug mode bellow.My problem is that the texture of the sprite is out of its bounds ...This is not happening with a static image sprite. By the way, dragging sprite with anchor at 0.5, 0.5 have a weird behavior. I'm using Phaser 2.0.4 Any idea ?Thank you ! Link to comment Share on other sites More sharing options...
Rafarel Posted May 6, 2014 Author Share Posted May 6, 2014 Here is the asset I'm using in attachment.I'm loading it as atlasJSONArray. rabbitTall.zip Link to comment Share on other sites More sharing options...
Rafarel Posted May 7, 2014 Author Share Posted May 7, 2014 Nobody have a clue ? Maybe my sprite map or json aren't good.I made them with Texture packer! Link to comment Share on other sites More sharing options...
Rafarel Posted May 17, 2014 Author Share Posted May 17, 2014 Is there anybody out there with this problem ?Maybe it is a bad Texture packer set up (I'm using JSON Array).It seems that setting the spriteSourceSize x and y to zero correct the issue, I need to do more tests. What's your workflow to export animations ?Personally, I export png frames from an SWF with SWFsheet then I import them into Texture packer. Link to comment Share on other sites More sharing options...
Rafarel Posted May 17, 2014 Author Share Posted May 17, 2014 I found out ! In texture packer I need to set trim mode to : Crop, keep position. Hope this topic can help someone else Link to comment Share on other sites More sharing options...
Recommended Posts