I have the following case, using LibGDX with scene2d: I have a figure that has an attack animation. At the point of impact I have created an Event called "damage" in the editor and set its integer to 1. This Event is also part of the output json file. Now, I want to fetch this event in runtime at the time it occurs and do stuff accordingly. What is the best practice on doing this?
I have searched online, read the docs and forums and the examples, but I could not really get the hang of this. It is easy to get the actual events for a Spine actor with SkeletonData.getEvents()
, but this only returns the possible events, not the events that has actually happened. Could someone enlighten me in this matter?