Walter: looking forward to it.
I have found another issue though.
I’ve got a “monster” which has an attack animation.
It has 7 frames, and it looks just fine:
[text]
Wed Jun 13 09:42:37 2012 DEBUG Sequence: attack, frame: 1, phase: next, hitFrame: 7
Wed Jun 13 09:42:39 2012 DEBUG Sequence: attack, frame: 1, phase: began, hitFrame: 7
Wed Jun 13 09:42:39 2012 DEBUG Sequence: attack, frame: 2, phase: next, hitFrame: 7
Wed Jun 13 09:42:39 2012 DEBUG Sequence: attack, frame: 3, phase: next, hitFrame: 7
Wed Jun 13 09:42:40 2012 DEBUG Sequence: attack, frame: 4, phase: next, hitFrame: 7
Wed Jun 13 09:42:40 2012 DEBUG Sequence: attack, frame: 5, phase: next, hitFrame: 7
Wed Jun 13 09:42:40 2012 DEBUG Sequence: attack, frame: 6, phase: next, hitFrame: 7
Wed Jun 13 09:42:40 2012 DEBUG Sequence: attack, frame: 7, phase: next, hitFrame: 7
Wed Jun 13 09:42:40 2012 DEBUG Sequence: attack, frame: 7, phase: ended, hitFrame: 7
[/text]
However, when I change the sequence to another one [like when he got “chilled” by some ice magic], something weird is happening. The ice animation also has 7 frames, but now I see:
[text]
Wed Jun 13 09:42:43 2012 DEBUG Sequence: attack_ice, frame: 1, phase: next, hitFrame: 7
Wed Jun 13 09:42:46 2012 DEBUG Sequence: attack_ice, frame: 1, phase: began, hitFrame: 7
Wed Jun 13 09:42:46 2012 DEBUG Sequence: attack_ice, frame: 2, phase: next, hitFrame: 7
Wed Jun 13 09:42:46 2012 DEBUG Sequence: attack_ice, frame: 3, phase: next, hitFrame: 7
Wed Jun 13 09:42:46 2012 DEBUG Sequence: attack_ice, frame: 4, phase: next, hitFrame: 7
Wed Jun 13 09:42:46 2012 DEBUG Sequence: attack_ice, frame: 5, phase: next, hitFrame: 7
Wed Jun 13 09:42:47 2012 DEBUG Sequence: attack_ice, frame: 6, phase: next, hitFrame: 7
Wed Jun 13 09:42:47 2012 DEBUG Sequence: attack_ice, frame: 7, phase: next, hitFrame: 7
Wed Jun 13 09:42:47 2012 DEBUG Sequence: attack_ice, frame: 21, phase: ended, hitFrame: 7
[/text]
Notice the ended phase. In my sprite listener, I can see that animation.frame is set to 21!
I have tried another animation, and instead of 7 I got 28.
It seems, that during ended phase I always get frame number of the imagesheet and not of the sequence! Which is weird, because during the rest of the animation, frame is set to the number from sequence. [import]uid: 109453 topic_id: 23275 reply_id: 111476[/import]