Hey all,
Is there anyway to retrieve the duration from a runAction sequence.
[glyph runAction:[Sequence actions:
[FadeOut actionWithDuration:6],
[CallFuncN actionWithTarget:self selector:@selector(expireSprite:)], nil]];
Thankx,
A fast, easy to use, free, and community supported 2D game engine
Hey all,
Is there anyway to retrieve the duration from a runAction sequence.
[glyph runAction:[Sequence actions:
[FadeOut actionWithDuration:6],
[CallFuncN actionWithTarget:self selector:@selector(expireSprite:)], nil]];
Thankx,
Sequences have a duration property. But if you don't have the sequence in a variable and want to retrieve it while it's being run, I think you'll have to look closely at the ActionManager class. (I think it would be necessary to add a tag to your sequence though.)
You must log in to post.