?
Because I think this works a bit wrong and I dont know whats the problem at the moment. There is also no method actionWithDuration in cocos2dx 3.4. Any ideas?
The porting what you have done is correct. But Spawn is used when two action need to run at the same time. Here i can see only one action.
What is the use of using Spawn?
Can you explain it bit more?
and in the ported code I dont have the first action “actionWithDuration” therefore I think thats a bit wrong… The porting is done a bit wrong… Can You take a closer look at it?
As Deepthi told Spawn is used when two action need to run at the same time.
In your case keyframeaction has only one action i.e duration. As per my knowledge syntax what you have written is wrong. If you are using Spawn then two action should be present.
Am not getting what exactly you want to do?
If you want create action with delay i.e in your case after some delay move action should perform then you can use Delay function.
auto* delayAction = DelayTime::create(duration); //Duration may be 6 or anything