Hi!
I'm trying to use the custom animation event feature, but I don't seem to receive the events. Here's how my animation config section looks:
[WalkRight]
DefaultKeyDuration = 0.3
KeyData1 = NewFrame0
KeyData2 = NewFrame1
EventName1 = AR1
EventTime1 = 0.1
EventValue1 = 8
EventName2 = AR1
EventTime2 = 0.2
EventValue2 = 8
Now, I'm trying to catch the events through both a global event handler and the ScrollObject's OnAnimEvent() method. Neither of them catches the event, even though they both catch the animation event. I can also see the animation on screen.
What could I be missing here?
Thanks!
Comments
http://orx-project.org/wiki/en/orx/config/settings_structure/orxanim
So it was a RTFM question after all
Speaking of which, I just realized that the current syntax does not let me pass X-Y coordinates from a key event. I thought I could have independent simultaneous events to pass them separately. Should I read the values directly from the config in the event handler then?
But as you mentioned you can retrieve any other config info based on the name of the event for example.
About 18 months ago I started changing the animation module to support separate channels (in preparation for skeletal animation). It turns out I only worked 2 evenings on that over 18 months so I might just finish the channel separation in the coming weeks without doing the skeletal animation part.