azerion / phaser-spine

A plugin for Phaser 2 that adds Spine support
MIT License
121 stars 58 forks source link

DrawOrder bug - Sometimes not working in Phaser (but appears to work in Editor) #93

Open shibekin69 opened 6 years ago

shibekin69 commented 6 years ago

Not sure what this is exactly, because it appears so random. What normally works in the editor, sometimes (or maybe rarely) doesn't work when you try out the animations in spine. If you have draworder keyed into animations, sometimes the runtime doesn't do the draworder you've done. From my experience, if this happens, try backing up your project, and do a stripped down animation or two, and try to debug the draw order by moving slots up or down one at a time, then export and try it out over at Phaser. If it works, move more slots up and down. Rinse and repeat until bug has mysteriously 'gone away'. May need to save a new file and strip out all the draw orders from the animation.

shibekin69 commented 5 years ago

To add, work around for this in case the problem is pervasive is to duplicate slots that need to be at the front or back, rename to something else, and use attachment keys to show and hide the front and back slots as needed.