DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

Enhancement request, need notification when IntervalAction is finished #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start action to scale layer from 1.0f to 0.0f
2. As soon, as action is finished, remove layer from it's parent

What is the expected output? What do you see instead?
There is no easy way to know when action is finished. Sometimes it is
desirable to get a notification when action is finished.

What cocos2d version are you using ?
0.6.2

Please provide any additional information below.
I have to implement polling every time I need to do something on an action
finish. For example I want a layer to disappear in animated manner and then
I want to remove the layer from it's parent (thus kill it). I do a kind of
UIAlertView emulation with modal behaviour.

Original issue reported on code.google.com by anton....@gmail.com on 25 Jan 2009 at 7:29

GoogleCodeExporter commented 9 years ago
Sorry for making issue.
I didn't noticed CallFunc. After reading Transitions.m I even got an idea how 
to use it.

We need Programming Guide to be started

Original comment by anton....@gmail.com on 25 Jan 2009 at 8:35

GoogleCodeExporter commented 9 years ago
no problem.
resolution: invalid.

Could you express your opinions regarding the programming guide here:
http://groups.google.com/group/cocos2d-iphone-discuss/browse_thread/thread/c46c4
b8d0167b89b?tvc=2
?

tnx.

Original comment by ricardoq...@gmail.com on 25 Jan 2009 at 10:13

GoogleCodeExporter commented 9 years ago
Thanks for having and posting this problem. I had exactly the same question and 
never would have run across 
CallFunc on my own. Add that to a Sequence and hey presto, you get notified 
when an action ends.

Original comment by grahampe...@mac.com on 1 Mar 2009 at 4:17