Jump to content

Texture out of sprite bounds when animated


Rafarel
 Share

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.

 

sprite_texture_offset.jpg

 

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

 Share

  • Recently Browsing   0 members

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