I think the person that originally posted this isn't a native english speaker and could be using some sort of english translator.
But, having said that, I too would love to know the same question he was trying to ask which is "how do I tie an FX object to a bone or slot?"
Im using coronaSDK, LUA and the latest runtime.
this is what I was trying based on what I deduced from perusing the runtimes. (keep in mind, I'm not a programmer, I'm just a designer.)
local name = "morph"
---
local json = spine.SkeletonJson.new()
json.scale = 1
local skeletonData = json:readSkeletonDataFile("data/" .. name .. "/" .. name .. ".json")
morphSkeleton = spine.Skeleton.new(skeletonData)
function morphSkeleton:createImage (attachment)
return display.newImage("data/" .. name .. "/" .. attachment.name .. ".png")
end
local headSparksEmitter = particleSystem.GetEmitter("fireSparksEmitter")
---
local fireHeadFXData = json:readSkeletonDataFile("data/" .. name .. "/" .. name .. ".json")
fireHeadFX = spine.Slot.new (fireHeadFXData, morphSkeleton, fireHeadbone)
fireHeadFX:setAttachment(headSparksEmitter)
As you can see, I created a spine object which works great, but when I try and tie my FX called "headSparksEmitter" I'm having an issue.