void CCRepeatForever::step(ccTime dt)
ccTime diff = dt + m_pInnerAction~~>getDuration() - m_pInnerAction~~>getElapsed;
// to prevent jerk. issue #390
I think this fix cannot work.
1. When the inner action is done, duration is smaller than elapsed. So I think the diff should be “elapsed - duration”.
2. After call “startWithTarget” method, the m_bFirstTick of inner action should be true. So the following “m_pInnerAction->step(diff);” will not take effect, is it right?
Does anyone have a good fix for this problem?
PS: cocos2d-iphone has the same problem.