Cocos2d-x之实现动作的反转

 

//实现动作的反转,即向相反方向移动

 

 

//原动作是向右下角移动的

label->runAction(MoveBy::create(1, Point(-50, -50)));

 

//反转之后原动作是向右上角移动的

label->runAction(MoveBy::create(1, Point(-50, -50))->reverse());

相关文章:

  • 2019-10-19
  • 2021-12-08
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-04-03
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案