Jump to content

Phaser/Spine convert part on button


RafelSanso
 Share

Recommended Posts

Hi community!

I'm doing my first tests on Spine using Phaser. One of the things I would like to do is to convert one of the parts of the character into a button that executes a function when I click it.

I can get the slot I want, and I can apply transformations:

SlotPlay = spine.state.data.skeletonData.findSlot ('play');

SlotPlay.boneData.scaleX = 4;

But if I try to add events to it, such as events.onInputOver.add, it does not recognize the events property.

How could I convert one of the spine parts into a button?

Thank you!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...