It looks like you're new here. If you want to get involved, click one of these buttons!
[BlockAnim]
DefaultKeyDuration = 0.15;
KeyData1 = tile1
EventName1 = AR1
EventTime1 = 0.1
EventValue1 = 1.0
KeyData2 = tile2
KeyData3 = tile3
KeyData4 = tile4
...
switch(_pstEvent->eID)
{
case orxANIM_EVENT_CUSTOM_EVENT:
...
[BlockAnim]
DefaultKeyDuration = 0.15;
KeyData1 = tile1
EventName1 = AR1
EventTime1 = 0.1
EventValue1 = 1.0
KeyData2 = tile2
EventName2 = AR2
EventTime2 = 0.1
EventValue2 = 1.0
KeyData3 = tile3
KeyData4 = tile4
[2010-11-05 15:13:02] <ASSERT> (orxAnim_AddEvent() - c: mporxcodesrcanimorxanim.c:869) [Assertion failed] : <(orxAnim_GetEventCounter(_pstAnim) == 0) || (_fTimeStamp > _pstAnim->astEventList[orxAnim_GetEventCounter(_pstAnim) - 1].fTimeStamp)>
Comments
Thanks for the output, it helped me find the issue right away.
So basically the answer is that there can only be one custom event on a given timestamp. Internally timestamps are used as keys so they can't be duplicated on the same channel (here the event channel). If you still want to have both events fired at the same time, you can go wild with the decimals:
EventTime1 = 0.09999
EventTime2 = 0.1
EventTime3 = 0.10001
These 3 events will be fire at the same time but don't share the same key. Sorry about the inconvenience, I'll have to figure out to handle things differently internally to allow more than one event per timestamp.
I should probably reorganize the tutorial home page so that the community tutorials should be the first thing people see there.
Ahah, apparently not that efficient as a slave driver, though! :P
Yep, very good idea. Not sure I'll venture myself to do the same for Chinese as I can't read it, unfortunately. Same for Spanish actually and the French pages are still non-existent. I blame me.