After searching for days on how to get multi resolution to work on Cocos Studio I finally found the solution thanks to the Chinese document(just google translated the page) http://cn.cocos2d-x.org/tutorial/show?id=2531!
In the doc they put this code in there HelloWorld init:
auto rootNode = CSLoader :: createNode ( "MainScene.csb" );
auto size = Director :: getInstance () -> getVisibleSize ();
rootNode-> setContentSize (size);
ui :: Helper :: doLayout (rootNode);
addChild (rootNode);
And thats it! it aligns the images and makes them relative to the screen.
I commented it out these lines in AppDelegate.ccp
/*if(!glview){
glview = GLViewImpl::createWithRect("CocosProject", Rect(0, 0, 640, 960));
director->setOpenGLView(glview);
}
director->getOpenGLView()->setDesignResolutionSize( 640, 960, ResolutionPolicy::NO_BORDER );*/
and added these two lines:
auto glview = director->getOpenGLView();
// FIXED_HEIGHT for portrait, switch x/y values and use FIXED_WIDTH for landscape
glview->setDesignResolutionSize(640,1136, ResolutionPolicy::FIXED_HEIGHT);
(its the iPhone 5 portrait resolution because thats what i published it in Cocos Studio)
I hope this helps everyone and answers their question about multi resolution