I am currently practice this example
http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_3*-*How_to_Move_a_sprite
This Sprite is constant speed now
int actualDuration = (int)4;
CCFiniteTimeAction* actionMove = CCMoveTo::create( (float)actualDuration, ccp(0 - target->getContentSize().width/2, actualY) );
Q1
I want to speed dynamic
for example:
if one sprite move (0,0) to (0,50) take 10 second , so the speed average is 50/10= 5
but i want is not just constant speed
i use this picture to describe
i want speed have acceleration
Q2
I hope the route can be curve,not just straight
like this
is that can be possible??
thx u