Hi, I am new with spine, I am testing and having lot of difficulties, there is no too much documentation for lua.
I am testing it with goblins sample.
I want to know 4 things, please:
1- I want to have a character and be able to change the clothes(attachments).
Do I need to place a skin placeholder and several images on it,or a placeholder for each attachment?
2- I am trying to change and attachment to the goblins sample, i have added a button to change the eyes, but honestly i can't make that simply thing to works. I added this...
local function onChange(event)
skeleton.setAttachment("eyes", "eyes closed");
return true
end
change= widget.newButton{
label="change",
width=70, height=70,
font=native.systemFont,
onRelease = onChange
}
change.x = 1024*0.5
change.y = 50
I have looked the json code, exists an " eyes closed" for both skins, I am recieveing this error.
Runtime error
/Users/myuser/Downloads/spine-runtimes-master/spine-corona/examples/goblins/spine-lua/Skeleton.lua:206: bad argument #1 to 'ipairs' (table expected, got nil)
3- If i want to change attachment individualy do I need to use skins? I dont want to change all attachments, only parts, for clothes?
4- How to set an slot to novisible with lua?
Thannks in advance