rahul-tiwari365 I have this rocket which is designed in spine tool and we are using the exports. But we need to change DP of the child dynamically during runtime using Phaser because this DP comes from server. So how can we do that?
Mario There's currently no out of the box way to do this. One solution you could try now: Remove the image from the skeleton in the editor, instead, create a point attachment or a bone at the location of the image. The portion of the rocket where the face image should show up should be transparent. In Phaser, create the skeleton from the exported files and create a Phaser Sprite. Load the custom image as the image of the Phaser Sprite. In code, position the Phaser Sprite at the location of the point attachment or bone. You can use the SpineGameObject.skeletonToPhaserWorld() function to transform the location of the point attachment or bone to the Phaser world coordinate system and apply that location to the Phaser Sprite with the custom image. See https://esotericsoftware.com/spine-phaser#Setting-Bone-Transforms For a more comprehensive solution that lets you add an image anywhere in the hierarchy of the skeleton, I've opened an issue here: EsotericSoftware/spine-runtimes2315