Hi, I want to make a car run along with a fixed path, and the path consists of several segments, let's say, like 'M'. What I am doing is making 4 actions and then adding these actions to a sequence. The code looks like this:
id action1 = [MoveBy actionWithDuration: 3 position: ccp(45, 275)];
...
[sprite runAction: [RepeatForever actionWithAction:[Sequence actions: action1, ..., nil]]]
the problem is speed of the car in each segment will be different. So, how could I figure this out. I am new to cocos2d, and don't know if there is a better way, thanks in advance!