playMaker

Author Topic: Screen size / resolution  (Read 7359 times)

cursed1

  • Playmaker Newbie
  • *
  • Posts: 8
Screen size / resolution
« on: December 08, 2013, 11:11:17 AM »
hi everyone
maybe stupid question but i dont know it and not understand
how to make  game screen size suitable all android devices (etc device 1 = 4.3" screen , 3.7" screen )
how to make it
thanks
(my english bad i m sorry)
« Last Edit: December 08, 2013, 04:44:03 PM by cursed1 »

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Screen size / resolution
« Reply #1 on: December 08, 2013, 04:51:44 PM »
Though I haven't tried myself, I'd use: 'get / set screen resolution' action. See below thread for idea on how to handle multiple aspects:
http://hutonggames.com/playmakerforum/index.php?topic=5320.msg25573#msg25573

cursed1

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Screen size / resolution
« Reply #2 on: December 08, 2013, 04:59:58 PM »
change screen size
 i use"set/get screen resolution" not working for me

     

« Last Edit: December 08, 2013, 05:03:37 PM by cursed1 »

cursed1

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Screen size / resolution
« Reply #3 on: December 08, 2013, 05:07:51 PM »
hmm thanks i will try now

cursed1

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Screen size / resolution
« Reply #4 on: December 08, 2013, 05:24:43 PM »
i can't do this  :'(
i could not
« Last Edit: December 08, 2013, 05:33:12 PM by cursed1 »

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Screen size / resolution
« Reply #5 on: December 08, 2013, 11:27:44 PM »
Post some screenshots of your playmaker setup or explain what your setup is. We can't guess what's wrong from images with no details.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Screen size / resolution
« Reply #6 on: December 09, 2013, 01:32:00 PM »
Hi,

 Do you want to accomodate 3d content or 2d interface elements?

 you will face not only a resolution problem, but also a ratio problem, the two are very distinct and solved with different technic.

3d content resolution: it doesn't matter.
3d content ratio : use a safe abstract area that fit between the two most extrem ratio you get get and fill the rest with background and props that are not important, but will occupy space on extrem ratios. I am not aware of any other technic without adjusting the content position itself.

2d content resolution: use a proper 2d framework such as NGUI or 2d toolkit, they have tools and tricks to switch textures. ELSE always design for retina, lower resolution will work ok. ALWAYS make your texture and sprite size multiple of 2 so that when they are downsized ( from retina to non retina), they don't get half pixels.

2d content ratio: use anchoring systems, so that content sticks to corners of your screens. GuiTexture and GuiText can do that, their x,y position ranges from 0,1 covering the whole screen area within that 1 unit position definition.

based on this, if you can refine your needs, I can go more into details.

bye,

 Jean

Jane

  • Playmaker Newbie
  • *
  • Posts: 4
    • Hedge3 | Crypto & DeFi Marketplace
Re: Screen size / resolution
« Reply #7 on: April 01, 2014, 02:49:42 AM »
Have you looked at using Fragments? Fragments should help make the code more re-usable, and support tablet views and smaller screen views (phones) easier.

See here: http://developer.android.com/guide/topics/fundamentals/fragments.html And here: http://mobile.tutsplus.com/tutorials/android/android-tablet-design/ (for a little tutorial)

You'll need API 3 at least, I believe.