Hi there,
I have a Spine character with many slots, and for each slot there are a bunch of accessories he can wear.
Attaching all the accessories images each to a slot, in Spine would be difficult.
What i want to do instead is replacing an attachment region at runtime, someting like this: setAttachment(‘Hair’, ‘accessories/hand/accessory_1’)
Actually, this results in an error :
Attachment not found: accessories/hand/accessory_1, for slot: Hair
The accessories images could be exported from Spine (if i check pack image folder in the export settings) but they are not attached to their corresponding slot
Does anyone have a solution for this ?
Thank you
Hello nish_michra,
Yes i actually did. In this example, the dagger and the spear are attached to the hand slot in Spine.
In my case, i have too many attachments to place in many different slots, and i would like some flexibility in doing that
For example i would like to place an accessory (i have about twenty or more) in the left hand, right hand, or attached to his back, while only placing a placeholder in each slot and then programmatically changing its atlas region
Thank you
Well the difference in the amount of work on the Spine attachments.
I could place only one template attachment per slot, and then modify it programmatically on the fly
I found this on the Spine documentation about runtime attachments and there seems to be some examples in Unity http://en.esotericsoftware.com/spine-runtime-skins#Creating-attachments
The question is how to do that in Phaser ?