How do I change what area of the screen is displayed in play mode? I need to move and resize it.

RobombieRobombie Posts: 2Member
edited July 31 in 2D

And I can't find the button. (I also don't understand coding whatsoever so if necessary tell me in the most BASIC POSSIBLE explanation.)


Tags :

Best Answer

  • TwistedTwiglegTwistedTwigleg Posts: 1,721
    Accepted Answer

    @Robombie said:
    First off, Thanks!
    You guessed correctly, but when I put the camera in, it didn't show a new view in play mode. I'm using 2D and I can't resize the camera for some reason. (I'll assume that's normal.)

    I think for a 2D camera node to be used for rendering, you have to have the current property enabled in the inspector. You can find the inspector on the far right of the Godot editor when the Camrea2D node is selected.

    For changing the size/scale of the camera, I think you need to adjust the zoom property, which will change how zoomed in the camera is.

    Here is a screenshot highlighting both the current and zoom properties in the inspector:

    To change the dimensions of the camera you will need to go to your project's settings, which you can find by selecting Project on the top left, then Project Settings. This will open the project settings window. On the left you can find all of the categories. Scroll down until you find the Display category, and then select Window. Then in the main window there will be two properties, width and height, which you can use to change the dimensions of the game window.

    You can also change how the screen is stretched when the application resizes as well. I generally use 2D for the stretch mode, and keep for the aspect, as it makes it where even if the window is resized everything is automatically positioned correctly in relation to the non-resized window.

    Hopefully this makes sense and helps!

    Screenshots Included:

    Thanks for the help!

    No problem, happy to help :smile:
    Thank you for the screenshots, it really helps deduce what is going on.

    I'm really new, but I'm hoping that with enough help I can make something cool!

    I have no doubt that with time and practice you can make something great!

    The biggest thing I have found that helped me in the beginning is to keep learning and not compare your early work with those who have been doing it for a long time. Everyone starts somewhere. With time and practice, anyone can be a great developer who makes amazing games :smiley:

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 1,721Admin

    I’m confused, what Is the problem? Can you explain both what is happening and what you are wanting to achieve?

    Are you trying to move the game view so that it shows a different part of the scene? If so, then you will need to use a Camera (for 3D) or Camera2D (for 2D) node and position it where it faces whatever you want to be seen.
    Then if you can move/rotate/scale/etc the camera node to change the view shown in the application when it is running.

    If you have multiple camera nodes, you will need to make sure the current/active property is checked on the camera node you want to render to the application.

    Hopefully this helps!
    (Side note: Welcome to the forums!)

  • RobombieRobombie Posts: 2Member

    First off, Thanks!
    You guessed correctly, but when I put the camera in, it didn't show a new view in play mode. I'm using 2D and I can't resize the camera for some reason. (I'll assume that's normal.)

    Screenshots Included:


    Thanks for the help!
    I'm really new, but I'm hoping that with enough help I can make something cool!

  • TwistedTwiglegTwistedTwigleg Posts: 1,721Admin
    Accepted Answer

    @Robombie said:
    First off, Thanks!
    You guessed correctly, but when I put the camera in, it didn't show a new view in play mode. I'm using 2D and I can't resize the camera for some reason. (I'll assume that's normal.)

    I think for a 2D camera node to be used for rendering, you have to have the current property enabled in the inspector. You can find the inspector on the far right of the Godot editor when the Camrea2D node is selected.

    For changing the size/scale of the camera, I think you need to adjust the zoom property, which will change how zoomed in the camera is.

    Here is a screenshot highlighting both the current and zoom properties in the inspector:

    To change the dimensions of the camera you will need to go to your project's settings, which you can find by selecting Project on the top left, then Project Settings. This will open the project settings window. On the left you can find all of the categories. Scroll down until you find the Display category, and then select Window. Then in the main window there will be two properties, width and height, which you can use to change the dimensions of the game window.

    You can also change how the screen is stretched when the application resizes as well. I generally use 2D for the stretch mode, and keep for the aspect, as it makes it where even if the window is resized everything is automatically positioned correctly in relation to the non-resized window.

    Hopefully this makes sense and helps!

    Screenshots Included:

    Thanks for the help!

    No problem, happy to help :smile:
    Thank you for the screenshots, it really helps deduce what is going on.

    I'm really new, but I'm hoping that with enough help I can make something cool!

    I have no doubt that with time and practice you can make something great!

    The biggest thing I have found that helped me in the beginning is to keep learning and not compare your early work with those who have been doing it for a long time. Everyone starts somewhere. With time and practice, anyone can be a great developer who makes amazing games :smiley:

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file