Two basic questions about spine in lua at runtime, please:
1- How to hide/show a slot with lua?.
2- How to change an image for other one inside a slot? , example:
(o) Slot
X Image1
- Image2
:think:
I answer myself:
1-
local mySlot=skeleton:findSlot("hair")
mySlot.a=0
2
skeleton:setAttachment("hair", "hair_2");