标签:
1 ////////////////// 动作加速度Speed /////////////// 2 3 Sprite* sprite = Sprite::create("button.png"); 4 sprite->setPosition(Vec2(visibleSize.width * 0.2, visibleSize.height * 0.5)); 5 this->addChild(sprite); 6 7 ActionInterval *move = MoveTo::create(4, Vec2(visibleSize.width * 0.8, visibleSize.height * 0.5)); 8 9 // 参数( 动作,是原来的 2 倍 ) 10 Speed *speed = Speed::create(move, 2); 11 12 sprite->runAction(speed); 13 14 15 ////////////////// 动作加速度Speed ///////////////
执行后动作是原来的 2 倍
标签:
原文地址:http://www.cnblogs.com/dudu580231/p/4555614.html