HI,
I am facing some difficulty in scrolling a layer , I tried this ..

-(BOOL) ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {



                if ([self scale] > 1) {
                        UITouch *touch=[[event allTouches] anyObject];
                        CGPoint location= [touch locationInView:[touch view]];
                        CGPoint convertedLocation = [[Director sharedDirector]
convertCoordinate:location];
                        [self scrollToCenter:cpv(480-convertedLocation.x,320-
convertedLocation.y) horizontal:YES];
                }

        }

    return kEventHandled;
}

In scroll To center method , how cld I find the next center for
scrolling ...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to