Jump to content

Texture out of sprite bounds when animated


Recommended Posts

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

  • 2 weeks later...

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...