UNIVERSAL BUILD

Hi guys i have been following this tutorial on universal build for portrait games.

However i encountered some rather strange results instead of the ones shown in the tutorial.
My game only has one scene. Game has no other codings or whatsoever yet only graphics, i want to get the universal build right first before i start coding. I have 4 actors altogether, grey wall, ball, background and camSize

GAME:

CODES THAT I APPLIED INTO MY PROJECT FROM THE TUTORIAL:
Inside background:

Inside camSize:

This is where i put the actor camSize:

This is what happens after i run the game. Do note that ive pressed stretch and restart for each device. My background turned from white to black. for iphone 5 and 6, my walls became shorter instead of full screen.
For iphone 6 portrait :
For iphone 5 portrait :
For ipad portrait:

Do help me out guys, thanks. @BBEnk

Comments

  • BBEnkBBEnk Member Posts: 1,764

    Looks like you did it correctly, This is what happens your camera gets longer, thats how it works by stretching the cameras aspect ratio to match device it's on, So your graphics look shorter but there not you just have to build your game with that in mind.

    I'm not sure why your background is disappearing but may have something to do with your rules take those rules out and try changing Y.position to camSize/2 and change size.height to camSize.

    If you still have issues dropbox me the file and i"ll take a look.

  • benjaminmagebenjaminmage Member Posts: 74

    @BBEnk Tried your solution but nothing changed. Anyway, i've already sent you the file. Please take a look! Thanks:)

Sign In or Register to comment.