小白求救
想用SpriteBuilder 做一个练习游戏,
途中用了下面代码想让”Targer”出现后住坐标ccp(0,0)走,
但出现的”Targer"却完会全不动
- (void)Targetgogogo:(CCTime)dt{
int random = (arc4random() % 350) + 1;
CCNode* Target = ;
Target.position = ccp(406, random);
;
CCAction *actionMove = ;
CCAction *actionRemove = ;
]];
}
我之前做的时候是这样做的:]; 你试试吧
失败了…/_\
我猜问题是出在这句
CCAction *actionMove = ;