2011. 3. 29. 01:30 cocos2d
cocos2d : 이동시 가속도(1)
id move = [CCMoveTo actionWithDuration:1 position:location];
id accel = [CCEaseIn actionWithAction:[[move copy] autorelease] rate:5.0f];
[greenApple runAction: accel];
//CCEaseIn : 점점 빠르게
//CCEaseOut : 점점 느리게
//CCEaseInOut : 빨랐다가 느리게
//CCSpeed : 해당 속도값대로
CCSpeed인 경우 인자가 rate가 아니고 speed이다.. 주의!!!
id accel = [CCSpeed actionWithAction:[[move copy] autorelease] speed:5.0f];