GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Introducing iOS Universal Binaries

123468

Comments

  • GuaveMediaGuaveMedia Posts: 1,262Member, PRO
    @HoneyTribeStudios
    So when going from iPad portrait to iPhone 5 portrait, I would change camera to what then?

    Thx for the help :)

    www.guavegames.wordpress.com
    www.tranrock.wordpress.com

  • HoneyTribeStudiosHoneyTribeStudios Posts: 1,792Member
    edited February 2013
    @GuaveGames - Well I haven't tried it but I would guess that you'd change the camera width to 424 and camera height to 480.

    (This is assuming you built the game at 320 x 480)

    And then move the camera origin x to -52.

    And move and objects on non-scrolling layers left by 52px.

    The good thing about GS 0.10.1 is that you can test this very quickly in the preview as we can now preview different device screen sizes.

    Give me a buzz if you need some original music in your games.

  • UtopianGamesUtopianGames Posts: 5,685Member
    edited February 2013
    Had a play around today with the camera it might be possible to build once and deploy to all devices after all but not 100% sure yet and the stretching on iphone 5 might be the show stopper for some, im not moving or manipulating any actors at all btw.



    Darren.
  • richcoyrichcoy Posts: 211Member
    @DeepBlueApps, Darren are you going to tell us the magic settings you used in the video? :)
  • UtopianGamesUtopianGames Posts: 5,685Member
    edited February 2013
    From an iPad landscape project with crop selected i used...

    If screen width=480 change camera height to 862 origin y to -46

    If screen width=568 change camera height to 1024 origin y to -128

    Hope this helps but i need to do some testing on devices to clarify.



    Darren.
  • funkyj4everfunkyj4ever Posts: 74Member
    Iam about to publish a new game. So what must i do now? Puslish it with ipad or iphone?
  • creativeappscreativeapps Posts: 1,771Member
    @DeepBlueApps.com will you please create small tutorial for this? So its easy to understand

    Thanks,
    John
  • DanielDoeDanielDoe Posts: 307Member
    I can't really understand UB... What is the diffirence between previous Crop/Letterbox feature and UB?

    - Build one app for many devices (iPhone4, iPhone5, iPad) - both avaliable in UB and Crop/Letterbox

    I have to adjust the same way all GUI and other elements in UB like in Crop/Letterbox so what is the diffirence?
  • MarkOnTheIronMarkOnTheIron Posts: 1,447Member
    edited February 2013
    @DanielDoe The "only" real difference is that now you can publish on the App Store a Universal Binary app. That will allow the users to download your app once and be able to run it on all devices without having to buy two different apps.

  • Braydon_SFXBraydon_SFX Posts: 9,121Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee

    From an iPad landscape project with crop selected i used...

    If screen width=480 change camera height to 862 origin y to -46

    If screen width=568 change camera height to 1024 origin y to -128

    Hope this helps but i need to do some testing on devices to clarify.



    Darren.



    Portrait works the same way - just invert the numbers.

    iPhone 4S and below:
    So if screen HEIGHT = 480,
    Change attribute: camera.width to 862
    Change attribute: camera.origin.X to -46


    iPhone 5:
    So if screen HEIGHT = 568,
    Change attribute: camera.width to 1024
    Change attribute: camera.origin.X to -128


    iPad:
    So if screen HEIGHT = 1024,
    Change attribute: camera.width to 768
    Change attribute: camera.origin.X to 0
  • mrpacogpmrpacogp Posts: 400Member
    This all seems amazing, but i have the same issue on all.
    When you resize to each device, all is resized good,, and look good if respect relation, and position, but limits of scene don't changed
  • debugdesigndebugdesign Posts: 886Member
    Fantastic News!!!
  • beefy_clyrobeefy_clyro Posts: 5,390Member
    If this works Darren, I owe you a beer :)
  • ultimaultima Posts: 1,207Member, PRO
    edited February 2013
    nice work, now we have 3 different options properly, letterbox,crop,stretch.. just like good old cinema solutions. for the most part I'd prefer cropping, but I can see at times stretching would be a good option.

    why do I feel like sometimes the users are more brilliant solution provider? more reason for GS to listen to us more.
  • UtopianGamesUtopianGames Posts: 5,685Member

    If this works Darren, I owe you a beer :)

    Fingers crossed for me then :)

    Darren.
  • Dazza006Dazza006 Posts: 248Member
    I'm currently making an app in iPhone Landscape would I be able to use the same
    technique @DeepBlueApps.com?
    Iam not sure of the numbers to use.
    Darren.

  • UtopianGamesUtopianGames Posts: 5,685Member
    edited February 2013
    My game was originally made for iphone but I used our resizer to convert to iPad so without having a play I'm not sure on the numbers.

    Darren.
  • ChimoruChimoru Posts: 137Member, PRO
    So if we make a project with resolution independence on with graphics for retina ipad, and submit an app with this universal build option, the app will be able to run on all iPads and iPhones including the 3GS?
  • ChakkuChakku Posts: 1,513Member
    Aquadel said:

    the app will be able to run on all iPads and iPhones including the 3GS?

    @Aquadel

    Yes, but it will run really slow on non-retina, because the device is loading hte retina images unnecessarily and not using it. (Non-retina devices have weaker processors)

    Chakku
  • Dazza006Dazza006 Posts: 248Member
    Ok cheers @DeepBlueApps.com I will probably do the same with my project then.
    Your resize tool is great, by the way.

    Darren.
  • waymanharriswaymanharris Posts: 294Member
    Great stuff!!! =D>
  • quantumsheepquantumsheep Posts: 8,188Member
    Great news!

    Always did feel a bit 'off' that I charged my players twice just to play the same game on different devices!

    This is a win I think, but I'm a bit confuzzled by it all so I'll wait for the tutorial vids :)

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: http://www.quantum-sheep.com

  • ChirpinGamesChirpinGames Posts: 214Member, PRO
    Is anyone else noticing that if you were to change the camera origin like say something like this:
    if screen HEIGHT = 480,
    Change attribute: camera.width to 862
    Change attribute: camera.origin.X to -46

    but then you have a pause button in that scene and hit pause, the pause screen breaks the -46 origin and resets it to 0?
  • ChimoruChimoru Posts: 137Member, PRO
    Chakku said:

    Aquadel said:

    the app will be able to run on all iPads and iPhones including the 3GS?

    @Aquadel

    Yes, but it will run really slow on non-retina, because the device is loading hte retina images unnecessarily and not using it. (Non-retina devices have weaker processors)

    Chakku
    I see. Thanks for the info!
  • UtopianGamesUtopianGames Posts: 5,685Member
    I tested our new wip game and it ran absolutely fine on a 3GS and i didn't even use our tool to uncheck pre load art (i will for final build)

    Darren.
  • ApexApex Posts: 56Member, PRO
    Is it available to Windows version of creator?
  • SirioGarciaSirioGarcia Posts: 52Member
    Great News! I hope to be a Pro Member soon and enjoy more benefits with GS. •Ω•
  • Yovanny369Yovanny369 Posts: 105Member

    Is anyone else noticing that if you were to change the camera origin like say something like this:
    if screen HEIGHT = 480,
    Change attribute: camera.width to 862
    Change attribute: camera.origin.X to -46

    but then you have a pause button in that scene and hit pause, the pause screen breaks the -46 origin and resets it to 0?

    I'm having the same problem
  • ChakkuChakku Posts: 1,513Member
    edited February 2013

    I tested our new wip game and it ran absolutely fine on a 3GS and i didn't even use our tool to uncheck pre load art (i will for final build)

    Darren.

    Ah, is that so?

    This means that I might go with Universal Support for my game... ;)

  • ChirpinGamesChirpinGames Posts: 214Member, PRO
    @Eduard0369 Ahh ok, good to know its not just me but seems like thats going to be a huge problem for everyone trying to take advantage of these universal builds.
This discussion has been closed.