1
我正在写一个游戏,当用户触摸屏幕左侧时,玩家向左移动,当他们触摸屏幕的右侧部分时,玩家向右移动。触摸并按住 - iPhone cocos2d
目前玩家只移动当你第一次触摸屏幕,我要被应用,只要用户拥有自己的手指在屏幕上的力量......我似乎无法找到一个API调用此。我需要做什么?
- (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
[self handleFrankMove:touches withEvent:event];
}
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
[self handleFrankMove:touches withEvent:event];
}
-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self handleFrankMove:touches withEvent:event];
}
嘿伊夫 - 我使用的Box2D和应用内'handleFrankMove'冲动 – Chris