Not receiving animation events

edited September 2012 in Help request
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

  • edited September 2012
    Try KeyEventName* and KeyEventValue* instead. :)

    http://orx-project.org/wiki/en/orx/config/settings_structure/orxanim
  • edited September 2012
    Yaaay! :)

    So it was a RTFM question after all :)
  • edited September 2012
    Ahah, at least I hope it wasn't too much of a RTFM answer! ;)
  • edited September 2012
    Don't worry, it was the politest RTFM! I've ever seen :)

    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?
  • edited September 2012
    Yep, right now you only have one float value that you can pass directly.
    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.
Sign In or Register to comment.