「Layer#ccTouchBegan override me」がでたら
2012/08/16
cocos2d
Layer#ccTouchBegan override me
とりあえず、でたら実装しておけってことか。
-(BOOL) ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
return YES;
}
-(void) ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
// do something, or not
}
-(void) ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event
{
// do something, or not
}
参考{
return YES;
}
-(void) ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
// do something, or not
}
-(void) ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event
{
// do something, or not
}
App crashing when touching a sprite and when touching menu background. « cocos2d for iPhone
: