Scaling Menu / Scene

  • #1, by crankshaft87Friday, 09. October 2015, 16:08 9 years ago
    Hello Everyone!

    My Text-Interface is working relatively good, so many, many thanks for that so far! smile Now i got another problem. I got a console terminal in one of my scenes and when my charakter goes to it, then the scene / menu should change to a picture showing the terminal to interact with it. I rendered the picture of the terminal in 1920x1080 and now, when i run my game for example in 800x600, then the terminal background picture is cutoff and out of bounds. Is there a easy way to scale the background fitting the current resolution? I tried to make the terminal with both, scene and menu. Nothing works.

    Very much thanks in advance.

    Newbie

    20 Posts


  • #2, by afrlmeFriday, 09. October 2015, 17:25 9 years ago
    Is your game resolution 1920x1080 or 800x600?

    background scene images have to be the same size as the default resolution or greater, but background images that are bigger than the default resolution will automatically turn the scene into a scrollable scene.

    You will have to resize it inside of your graphic editing program (photoshop, gimp or whatever you use).

    Imperator

    7278 Posts

  • #3, by crankshaft87Friday, 09. October 2015, 17:53 9 years ago
    Okay so, my native, production resolution is 1920x1080. But when i run the game through the editor with 800x600, then the problem described above hits me. Is it not going to be like that, when i compiled the game or what are you trying to teach me? smile

    Thank you very much!

    Newbie

    20 Posts

  • #4, by afrlmeFriday, 09. October 2015, 18:48 9 years ago
    Sorry I don't understand what you mean by native production resolution is 1920x1080 & when I run the game through the editor with 800x600.

    The default game resolution is whatever you specified as the resolution in the game tab. If you don't want a scene to be scalable then the scene background & objects should be designed for that resolution. If the scene background is greater than the specified resolution then the scene / menu will become scrollable which can be scrolled by the character walking to the edges of the current camera viewport or by the mouse cursor on the edge (if you enabled scroll when cursor reaches edge option in the scenes properties tab).

    I have no idea what will happen if you create a scene background that is less than your game resolution, but I doubt it will look / work very well.

    Now in regards to resolution... if you are playing the game in fullscreen mode then it doesn't really matter what your game resolution is, as it will always scale the images / backgrounds / animations up or down in proportion to the players desktop resolution. If you play in window mode, then by default the window will be set to whatever the resolution was set to in the game tab.

    P.S: VS does not automatically scale up / down background sprites, object sprites or animations to suit the specified game resolution.

    Imperator

    7278 Posts