Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

COLOR SLOT in runtime
Started by kilopop Oct 01 2015 01:02 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

kilopop

[GLOBAL: userInfoPane.html]
kilopop
  • Contributor

  • 258 posts
  • Corona SDK

How do you color a slot in runtime?

Thanks in advance.



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,641 posts
  • Corona SDK

I posted a moment ago, but missed the fact you posted in the spine forum.  My guess is, those who spine, know what you mean by 'slot'.  

 

Just in case, here is a ref for other readers:

 

http://esotericsoftware.com/spine-using-runtimes#Slot

 

My recollection about spine is that you'll have to use the runtime lib to get the slot reference and modify it yourself.  However, the runtime may not provide exactly the function you need to access the slot.  This means you'll h ave to modify the code yourself.

 

That said, my last time using the spine runtime was months ago, so hopefully someone else has more useful data than I on this.



[TOPIC: post.html]
#3

kilopop

[GLOBAL: userInfoPane.html]
kilopop
  • Contributor

  • 258 posts
  • Corona SDK

Ok, so here it is in case it helps anyone sometime:

    local colorName = skeleton:findSlot( slotName )
    colorName:setColor (r, g, b, a)




[topic_controls]
[/topic_controls]