You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the below code show the tooltip on the global variable that it cannot be referenced in this way, however, when compiled it appears there is no issue referencing it in this way at all
with (global) {
a = 1;
b = 2;
c = 4;
show_debug_message(global);
}
Expected Change
If the 'global' variable is said to not be referenced in a 'with' statement, sure it should throw an error, or the tooltip on the 'global' variable be removed.
Steps To Reproduce
Start GameMaker
Create a new project and copy the above code in to an object
Hover over the global variable
See the issue
Run the project
See it works fine
How reliably can you recreate this issue using your steps above?
Always
Which version of GameMaker are you reporting this issue for?
2024.1300 (Betas)
Which operating system(s) are you seeing the problem on?
Windows 11
Are you running GameMaker from inside your Steam library?
None
Sample Package Attached?
I have attached my bug package
Sample Project Added?
I have included a small sample project
The text was updated successfully, but these errors were encountered:
YYDan
changed the title
In-Game: Referencing the global variable within a 'with' statement states it cannot be referenced, yet if runs fine when complied
In-Game: [VM] with(global) shows a Feather GM2021 error and YYC will fail the build, yet VM runs it correctly
Jan 21, 2025
YYDan
changed the title
In-Game: [VM] with(global) shows a Feather GM2021 error and YYC will fail the build, yet VM runs it correctly
Feather: "with(global)" gives an incorrect Feather GM2021 error saying global cannot be refenced in this way
Jan 23, 2025
YYDan
changed the title
Feather: "with(global)" gives an incorrect Feather GM2021 error saying global cannot be refenced in this way
Feather: "with(global)" gives an incorrect GM2021 error saying global cannot be referenced in this way
Jan 23, 2025
Description
Using the below code show the tooltip on the global variable that it cannot be referenced in this way, however, when compiled it appears there is no issue referencing it in this way at all
Expected Change
If the 'global' variable is said to not be referenced in a 'with' statement, sure it should throw an error, or the tooltip on the 'global' variable be removed.
Steps To Reproduce
How reliably can you recreate this issue using your steps above?
Always
Which version of GameMaker are you reporting this issue for?
2024.1300 (Betas)
Which operating system(s) are you seeing the problem on?
Windows 11
Are you running GameMaker from inside your Steam library?
None
Sample Package Attached?
Sample Project Added?
The text was updated successfully, but these errors were encountered: