I would like to have a callback to be invoked when a layer becomes visible, and another one to be invoked when it become invisible. I thought overriding the 'on_enter' and 'on_exit' methods would do the trick, but it appears they are invoked more than once :( A solution for me could be to be notified of the end of the transition.
What is the best way to achieve this? -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/cocos-discuss/-/pxclJKI1MlAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
