I am making a kids drawing book app on cocos2d, I have completed my application for iPhone 4. I have made too many invisible boxes in my app for touch detection and all of them are set on fixed point co-ordinates for example
RectangleBox* pb1 = [RectangleBox alloc];
[pb1 setBoxProperty:CGRectMake(116, 193, 25, 25)];
RectangleBox* pb2 = [RectangleBox alloc];
[pb2 setBoxProperty:CGRectMake(129, 142, 25, 25)];
now I want all of them to move little bit on the right side of the screen and then I will replace the background image to cover the black portion of the screen
I want to know, what is the easiest way of doing it, I dont want to modify each and every box's position manually because there are too many boxes. but I will do that if there is no other way. Also please tell me how will i detect when the app is running on iphone 5 i am using cocos2d-iphone v2