Workaround is simple, adding one user data of one frame in the editor and check it in the code.
For example, there are 30 frames for the animation of the squirrel kicking the nut. And every time when the squirrel kicks the nut, the distance between the squirrel and the nut is the same. So I can find the number of the frame about when the leg of the squirrel touches the nut. Then I add one key-value in the user data of this frame in sprite helper. In the code, I check the callback of changing every frame, if there is one frame has the user data, call the function to kick the nut.
Hope it could help you.
Alex James wrote:
Sorry to bring up an old post but i have this exact problem. Can i ask what your work around is/was please?