Android - Adjusting BAckground to Screen Size

MagoNicolasMagoNicolas Member, PRO Posts: 2,090
edited November -1 in Working with GS (Mac)
Hello guys, how are you?

Is it possible to adjust a background image to fit the Screen Size of Any Android Device?
(I know that background image WOULD not be proportional) But I need to know.

Cheers.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You can use the previously Stated iPad resizing Technique. I did this to make a kindle/nook version of my game. Although Be darn sure to test out your .apk build it self cause mine don't play anything at all like the viewer version does.
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    But you change the Sceern size to a specific number with that way or not?

    I need it to be variable, because I don't want to be with Black BArs on the side or on the top on ANY Android phone.

    Cheers.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Ah well no I don't think they currently have a way to make it always stretch to fit all devices.
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    Hope Someone Knows an Answer.
  • SkyMapleSkyMaple Member Posts: 817
    Have you tried changing the image depending on the width or height of the scene?

    _______________________________
    Follow me on Twitter!
    https://twitter.com/SkyMapleGames
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    SkyMaple said:
    Have you tried changing the image depending on the width or height of the scene?

    _______________________________
    Follow me on Twitter!
    https://twitter.com/SkyMapleGames

    Have just tried that, Didn't Work :(
  • perfectanswerperfectanswer PRO Posts: 121
    Did not tested, but maybe this can help?

    ChangeAttribute
    `

    myImage.size.width = Device.Screen.Size.Width

    `
    Maybe you can try constrain or interpolate instead of ChangeAttribute.
Sign In or Register to comment.