You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented your solution in an iPad app, where only one part of the screen was the scroll view. This way the overridden "-(CCMenuItem *) itemForTouch: (UITouch *) touch" wasn't working right. I came up with an updated function, that suits this more commonly (maybe should be used this way in cocos framework, idk.), even with more menus on one screen, one on the scroll view, one on the "static" view:
Hi!
I implemented your solution in an iPad app, where only one part of the screen was the scroll view. This way the overridden "-(CCMenuItem *) itemForTouch: (UITouch *) touch" wasn't working right. I came up with an updated function, that suits this more commonly (maybe should be used this way in cocos framework, idk.), even with more menus on one screen, one on the scroll view, one on the "static" view:
-(CCMenuItem *) itemForTouch: (UITouch *) touch
{
CGPoint touchLocation = [touch locationInView:[[CCDirector sharedDirector] openGLView]];
touchLocation = [[CCDirector sharedDirector] convertToGL:touchLocation];
}
What do you think? Is this an improvement?
The text was updated successfully, but these errors were encountered: