DragonBones / DragonBonesJS

DragonBones TypeScript / JavaScript Runtime
MIT License
759 stars 320 forks source link

[Feature] Mesh animations are not supported in Phaser #57

Open Nodragem opened 6 years ago

Nodragem commented 6 years ago

Hello,

I was very excited by the mesh feature in DragonBones, and I had good fun with it in DragonBones Pro.

However, when I imported successfully my animation into Phaser, I got the warning message: "mesh are not suppored in phaser-ce" (I write the message from memory, so might not be accurate). In practice, the game is running but the mesh animated parts of my DragonBones' animation are not displayed ... :( so sad.

Is there any technology roadblock that prevents implementing the mesh animations in Phaser? or is it actually possible to do but not implemented yet? If so, any plan to implement it in the near future? or maybe in Phaser 3?

Thank you for your amazing work again.

doubleclip commented 6 years ago

Mesh does not work since the Phaser 2 does not support mesh. We hope Phaser 3 can support it.

Nodragem commented 6 years ago

I did some search, and it seems that Creature succeeds to use their mesh feature in Phaser 2: https://phaser.io/examples/v2/animation/creature-dragon

Maybe they are using a workaround you can use?

akdcl commented 6 years ago

Phaser-ce no mesh api, the only way to support mesh is to use creature. Phaser 3 support mesh api. https://github.com/photonstorm/phaser/tree/master/src/gameobjects/mesh

Nodragem commented 6 years ago

oh cool :) can't wait for phaser 3 then :D I think it is going to be released soon, like one week or so.