From 6b7d020a03a089acc34a1aee7c6ca9360c8ed05c Mon Sep 17 00:00:00 2001 From: gurpreetsinghmatharoo Date: Fri, 8 Dec 2023 11:50:44 +0530 Subject: [PATCH 1/8] [General] Fixed tag for Declare Temporary Variable --- .../Common/Declare_Temporary_Variable.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Manual/contents/Drag_And_Drop/Drag_And_Drop_Reference/Common/Declare_Temporary_Variable.htm b/Manual/contents/Drag_And_Drop/Drag_And_Drop_Reference/Common/Declare_Temporary_Variable.htm index 99404b69e..3d23abb66 100644 --- a/Manual/contents/Drag_And_Drop/Drag_And_Drop_Reference/Common/Declare_Temporary_Variable.htm +++ b/Manual/contents/Drag_And_Drop/Drag_And_Drop_Reference/Common/Declare_Temporary_Variable.htm @@ -4,7 +4,7 @@ Declare Temporary Variable - + @@ -58,7 +58,7 @@
© Copyright YoYo Games Ltd. 2023 All R Action - Assign Variable --> \ No newline at end of file From bc8dba94068a97c335a3a6acf96d096914f5f9bf Mon Sep 17 00:00:00 2001 From: gurpreetsinghmatharoo Date: Fri, 8 Dec 2023 16:41:36 +0530 Subject: [PATCH 2/8] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/2155 * Updated example on application_surface --- .../Drawing/Surfaces/application_surface.htm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Manual/contents/GameMaker_Language/GML_Reference/Drawing/Surfaces/application_surface.htm b/Manual/contents/GameMaker_Language/GML_Reference/Drawing/Surfaces/application_surface.htm index b7317ad52..168a37499 100644 --- a/Manual/contents/GameMaker_Language/GML_Reference/Drawing/Surfaces/application_surface.htm +++ b/Manual/contents/GameMaker_Language/GML_Reference/Drawing/Surfaces/application_surface.htm @@ -22,11 +22,17 @@

Syntax:

application_surface;

 

Returns:

-

Surface

+

Surface

 

Example:

-

surface_resize(application_surface, display_get_gui_width(), display_get_gui_height())

-

The above code will resize the application surface to have a 1:1 ratio with the GUI layer.

+

var _cam_width = 320;
+ var _cam_height = 180;
+ var _resolution_scale = 4;
+
+ surface_resize(application_surface, _cam_width * _resolution_scale, _cam_height * _resolution_scale); +

+

This defines the size of the in-game camera (320 x 180), and a resolution scale value (4x), which is how large the target resolution should be in relation to the in-game camera.

+

The camera size is multiplied with that resolution scale and applied as the size of the application surface, which defines the game's resolution.