Change Actor Size

Hello,

I'm working on a project and I looked on the forum for the answer to the following question without luck.
How can I change the size of an actor to be the size of the screen the game is played on.

Ex: The actor "mountain"is 600 px x 200 px with the game in IPad portrait mode
If the game is played on an device that has the resolution 1030 px x 900 px I want the actor"mountain" to change its size to 1030 x 900.

Thank you

Comments

  • pHghostpHghost London, UKMember Posts: 2,342

    Change actor width to game.Screen.Size.Width and height to game.Screen.Size.Height

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2016

    It seems a little odd to have an actor only occupy a small part of an iPad screen, but then occupy all of the screen on another device ?

    Would you not want the actor to proportianlly occupy the same amount of the screen regardless of the device ?

  • bogdan.baitanbogdan.baitan Member, PRO Posts: 5

    The actor size at the beginning was just for the example. The actors real size will be the size on the of the scene in Ipad portrait 1024 x 768.

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2016

    @bogdan.baitan said:
    The actor size at the beginning was just for the example. The actors real size will be the size on the of the scene in Ipad portrait 1024 x 768.

    If you don't mind the image's aspect ratio being distorted - which would be the case if the actor occupied all of a 4:3 screen (iPad) and also occupied all of a 3.42:3 (1.14:1 / 103:90) screen - then all you need do is make sure your app is set to 'stretch' and the scene will be distorted to fit whatever device it is played on.

  • bogdan.baitanbogdan.baitan Member, PRO Posts: 5

    The game will be set to overscan. I don't mind if this actor gets distorted because his only role is to be the same size as the screen size the game is played on. It will be used as a reference for another actor.

Sign In or Register to comment.