sprite kit - How to make different objects compatible with IPhone and IPad using Spritekit -


so i've been trying make objects correct size both ipad , iphone using proportions based on size of screen. i've been having trouble doing objects such sklabelnode, due using fontsize instead of (width, height) format. wanted make sklabelnode of fontsize 35 on iphone 6, how use proportions make same size relative screen ipad 2 works both iphone , ipad?

    sklabelnode *mylabel2;     mylabel2 = [sklabelnode labelnodewithfontnamed:@"helveticaneue-light"];     mylabel2.text=@"click";     mylabel2.fontsize = 35; 

it's not possible

the frame property provides bounding rectangle node’s visual content, modified scale , rotation properties. frame non-empty if node’s class draws content. each node subclass determines size of content differently. in subclasses, size of node’s content declared explicitly, such in skspritenode class. in other subclasses, content size calculated implicitly class using other object properties. example, sklabelnode object determines content size using label’s message text , font characteristics.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -