« Torna a tutte le versioni

GameMaker Beta BETA

Anteprima
più volte a settimana
IDE ?
2026.200.0.1217
28/11/2026, 3 giorni fa NEW!
GMRT (nuovo runtime)
0.22.4
01/10/2026, 2 mesi, 0 giorni fa
Runtime GMS2 ?
2026.200.0.1145
28/11/2026, 3 giorni fa NEW!
Anche se è l'ultima versione e può contenere nuove funzionalità, ricorda che è ancora una beta - fai un backup dei progetti prima di provarla.

Scarica

Download per IDE v.2026.200.0.1217:

Note di rilascio:
SUGGERIMENTO Puoi leggere queste note anche sul sito di GameMaker: https://releases.gamemaker.io/release-notes/2026/200.

GameMaker

Release notes and general information about GameMaker releases.

Release Notes

System Requirements

Required SDKs (Monthly/Beta)

Required SDKs For LTS 2022

Required Permissions and Antivirus/Firewall Setup

How To Report Bugs

See Existing Bug Reports

Roadmap

GameMaker 2026.200.0 Beta

IDE 2026.200.0.1217 and runtime 2026.200.0.1145, updated 27 November 2026.

Downloads: Windows - macOS - Ubuntu

IDE

Highlights

  • Code Editor 2: over 100 fixes, covering selection, find and replace, indentation, completion, tooltips, colouring, folding, split views and performance in large scripts (see below).
  • Terminal window. Views > Terminal opens your shell inside the IDE, docked with the Output windows and starting in the project folder: PowerShell on Windows, your login shell on macOS and your shell on Linux. Full-screen programs such as vim, htop and less work, including the mouse wheel, and Ctrl+click (Cmd+click on macOS) opens file paths, file:line locations, URLs and asset names.
  • Colour and links in the Output windows. The Output windows show the colours from tool output, and you can add your own highlight rules. Ctrl+click (Cmd+click on macOS) a compile or runtime error location to open it in the code editor, or an asset name to open the asset. A bar counts the errors and warnings, F8 and Shift+F8 jump between them, you can filter the output to some text or to errors only, and you can export or copy it as HTML with its colours.
  • New theme system and a Dracula skin. Every colour in the IDE now comes from the skin. Dark and Light look the same as before, except that Code Editor 2 now follows the skin and is light in the Light skin (#5222). Dracula is included as a built-in skin.
  • Skin Generator. Preferences > Skin Generator lets you build your own IDE skin without editing theme files. Pick a background, text and accent colours, or go further and edit the grey ramp and syntax colours. You can start from Dark, Light, Dracula or a skin you made earlier. Skins can be imported and exported, and applying one doesn’t need a restart.
  • Feather: a new warning, GM1065, for calls to functions and constructors that don’t exist (#14226), plus many type and completion fixes.
  • Markdown preview zoom for Notes: Ctrl+mouse wheel (Cmd on macOS), the text size hotkeys or the right-click menu. Its zoom is separate from the code editor’s and is remembered (#5223).
  • Stop only stops your own game. Stopping a game, or closing the IDE, used to end every build tool, game, web server and adb process on the machine with a matching name, including ones started by another IDE. It now ends only the processes this IDE started.
  • Projects ask before upgrading files. Opening a project no longer rewrites any files. If a project’s files need upgrading to a newer format, the IDE tells you how many resources will change and lets you choose Upgrade or Cancel, so you can commit your work first and then commit the upgrade on its own.

Code Editor 2

Editing and selection

  • Double-clicking whitespace or a one-character word selects the right thing, and so does double-click and drag (#16364, #8725, #10565).
  • Two clicks a second or more apart are no longer treated as a double click.
  • Arrow keys no longer sometimes send the caret to the top of the document (#15216), and an empty selection no longer does either (#15347).
  • All caret keys now come from Redefine Keys, and column selection is Shift+Alt again (#12479).
  • On macOS the default shortcuts (Find, Replace, Comment, Go To Line and others) use Command instead of Control, as Code Editor 1 does (#16329). Cmd+, opens Preferences from the code editor (#9097).
  • AltGr no longer triggers the Alt navigation shortcuts (#7593).
  • Box selection: you can type while the mouse is still held, pressing Alt mid-drag works, and a new box selection replaces the previous one and its cursors (#13455, #11301, #6998).
  • Drag-selecting from below the last line, and Shift+click below it, now select as expected (#6752, #7090).
  • Ctrl+Up/Down scroll the view in the direction the caret moves (#5992), and Page Up/Down keep going across all of an object’s events (#9503).
  • Duplicate with part of a line selected puts the copy straight after the selection (#13933).
  • Join Lines drops the joined line’s indentation (#14196).
  • Commenting a selection keeps the caret and selection where they were, and comments every line at the same column (#11589, #11588).
  • Emoji are typed whole and count as one column, and the caret and Backspace step over ligatures correctly (#7368, #8740).
  • One undo takes back IME input (#6084), and undo removes the padding spaces added when typing past the end of a line (#11303).
  • Clicking past the end of a line places the caret at the right column (#9185).
  • No more ghost characters around × and ÷ between numbers (#11528).
  • A child object’s inherited events are read-only as soon as it opens (#11738). Using Peek Definition on an object event no longer changes whether that event can be edited elsewhere, so a parent object’s event no longer becomes read-only and a child’s inherited event no longer becomes editable (#16458).

Indentation and auto-pairing

  • Tab indents selected lines by a whole indent (#14634).
  • Better indentation for statements continued onto several lines, and for indented code outside a block (#8029, #8821).
  • Enter after a one-line if (a) b = 1; no longer indents the next line (#14680).
  • Snippet indents follow the editor’s tab setting (#16056), and keyword completion follows the brace and indent preferences (#12711).
  • Closing brackets typed before another bracket or a comma are inserted correctly (#7208).
  • ' and ( don’t auto-pair inside a template string’s text (#12997), and nothing auto-pairs in Notes (#10163).

Find and replace

  • Find no longer stops finding matches after it is reopened (#16325).
  • Replace moves on past its own replacement, so replacing a word with a longer one containing it no longer loops, and Find starts from the cursor’s line (#16377).
  • Undo after a global search Replace restores the text (#16378).
  • Ctrl+H (Replace in Editor) is Replace Next in the find bar, as in Code Editor 1, and its tooltip shows the right shortcut (#7718).
  • Find in selection searches only the selected document (#11258).
  • Global search no longer hangs on “Searching for…” when a GML Visual file fails to load (#9999).

Completion, tooltips and navigation

  • Constructors appear in Ctrl+T and in Ctrl+Space completion (#16150, #16151).
  • New Show Code Completion hotkey, Ctrl+Space by default (#6737).
  • A completion can be accepted at every caret (#7036). Completing a function before existing parentheses goes into them (#8825).
  • The completion list starts at the top the first time it opens, and closes when there’s nothing to offer (#11722, #7265).
  • Pressing Caps Lock, Num Lock, Scroll Lock, the Menu key or the Windows key (or Ctrl on macOS) leaves the completion list and hover tooltip open (#16459).
  • The argument tooltip appears by the ( you type, stays on screen near the right edge, and uses the JSDoc @param/@arg names (#14739, #9311, #13735, #9418).
  • Hover tooltips colour variables as the code does, end a generic type at its closing bracket, and wrap Chinese text instead of cutting it off (#8752, #11534, #12036).
  • The definition preview no longer shifts the lines below it (#10798).
  • A middle click away from a word no longer goes to a definition or opens help (#10616).
  • Navigation history (back/forward) covers opening and switching documents (#7719).
  • Choosing a declaration from the symbols list shows it near the top of the view (#6453), and jumping to a Diagnostics message centres its line (#7906).
  • Room instances placed or renamed in the Room Editor are known to code straight away (#7941). So is a duplicated room that contains instances, and its instances, straight away and after it is renamed.
  • Functions from a prefab collection added with Add Collection Reference are coloured and offered in completion, with their signatures, straight away instead of after reopening the project (#16480).
  • Timeline moments show their @desc in the moment list (#1200).

Colouring and display

  • HLSL shaders are coloured with the HLSL grammar, and the language you pick for a shader is remembered (#16331).
  • Better colouring of macros after a dot, members of values of unknown type, built-in variables of instances of unknown type, and global (#4468, #5954, #6271, #11804).
  • JSDoc types naming several types or Array[...] are coloured (#5958), and YAML keys and comment markers are coloured whole (#12357).
  • A URL in a comment ends at the ) closing a Markdown link (#5894).
  • Brackets: only one pair is highlighted when the caret is between two brackets, and brackets past the last rainbow level keep their colour (#7269, #11660).
  • Selection matches refresh as the caret moves with symbol pairs off, and the current line keeps a fainter highlight when the editor loses focus (#11144, #11136).
  • Indent guides run through blank lines and follow the zoom, and tab whitespace markers span the whole tab (#7189, #7571).
  • The code map follows the code when zoomed, and its lines match their width in the code (#11695, #11930).
  • Zoom keeps the top line in view, and the Increment/Decrement Text Size hotkeys zoom the editor (#11354, #14428).
  • The mouse wheel scrolls one line per wheel step on macOS (#9718).
  • Latin text after Japanese is drawn in the editor font again (#13058).
  • Icons in the event and asset dropdowns look clean instead of blocky or distorted when the display is scaled above 100% (such as 150%) (#16433).
  • Theme preferences show captions for scopes with no colour of their own (#7612).
  • Code Editor 2 switches to the light theme when you change the IDE skin to Light, and a theme you choose or edit in Preferences only applies when you press Apply or OK, so Cancel leaves the code editors and themes as they were.

Folding, splits and layout

  • Folded regions stay folded, and bookmarks are kept, when a project is closed and reopened (#1169, #9744). There is one bookmark per line (#7272).
  • Enable code folding on statements is respected (#5264).
  • Folding fixes: the fold button unfolds regions starting on the same line, only comment-only lines fold as a // run, a region’s fold highlight ends in the right place, and clicking below an event no longer unfolds a region at its end (#15954, #11239, #10165, #11604).
  • Split view fixes: splitting after a collapse, repeated drags and repeated splits; a right-click on the splitter button adds one split; two vertical splits work with the navigation panel on the left (#7052, #7466, #7467, #7051, #6878).
  • A split keeps its place when lines are added above it in another split, picking an event changes only the split in use, and jumping to a bookmark moves the split you’re in (#11523, #8485, #8682).
  • A saved layout with an emptied split opens at full width instead of half white (#16215).
  • Switching a window to another asset shows it from the top (#11931).
  • A workspace layout saved with Code Editor 2 and opened without it shows Syntax Errors instead of a blank Diagnostics tab (#10129).
  • The bottom navigation dropdown opens upward the first time (#11429), and right-clicking below the code opens the context menu (#7261).

Rooms, shaders, objects and timelines

  • Room creation code can be converted between GML Code and GML Visual, opening it focuses the editor, and you can delete an instance’s creation code by right-clicking its header (#9977, #2180, #11293).
  • The language selector offers GML Visual for GML only (#16240), the language menu leaves out internal grammars (#11947), and a note’s language menu offers every language after you pick one (#11948).
  • You can switch to a shader’s fragment page with single view off (#14616).
  • A new event or moment at the same file as a deleted one no longer shows the old one’s content (#14284).
  • Deleting a child object’s event and then inheriting it again keeps the event’s semantic colouring and other language features, without reloading the project (#16472).
  • The Sequence Editor finds a Moment’s function, including one just made with Add Function (#7247).
  • The Inspector’s note and script preview follows edits made in Code Editor 2 (#9129).

Performance

  • Much less lag while typing in long scripts (#7570).
  • Fast word-match highlighting in very large scripts (#5800).

Feather and the GML language server

  • New warning GM1065 for calls of functions and constructors that don’t exist (#14226).
  • A message severity you’ve changed is no longer hidden by the lint profile (#16002).
  • A prefab’s functions and constructors are offered in code completion (#15936).
  • Functions that only GMRT implements (such as the collision_*_array functions) are only offered, and only treated as built-in, when the target is GMRT.
  • With Refactor asset names on rename on, renaming an asset updates closed scripts as well as open ones, and no longer mangles template strings (#960, #12232). Renaming an asset or variable (including included files and particle emitters in Feather’s refactor window) or applying a Feather quick fix now shows a warning listing any scripts Feather can’t rewrite safely, so you can update their references by hand (#16436).
  • Rename Identifier renames a function’s argument in its declaration too (#10925).
  • Reanalyze Project parses the functions it rediscovers (#12621).
  • Some projects no longer stay on “Analyzing Project” forever with the language server at high CPU (#15860).
  • The language server analyses deeply nested code, such as very long string joins, instead of crashing and restarting over and over. The default Maximum dive depth goes up from 100 to 1000, and code nested too deeply to analyse shows a GM1100 message (#16457).
  • The language server respects Case Insensitive Mode for Project Files, so projects with case-mismatched asset paths load on Linux (#15431, #15562). It also no longer crashes at startup on Linux, and the IDE carries on if it isn’t running.
  • When one macro replaces a built-in function and a second macro holds the built-in’s name to call the original (for example, #macro part_system_create_og part_system_create), calls through the second macro are checked against the built-in function, so they no longer get false argument-count errors such as GM1020, and hover, go-to-definition and function tooltips show the built-in function (#16443).
  • Types:
    • Passing a struct to a typed parameter no longer retypes the variable (#16272).
    • A base method that returns self, called on a child struct, gives the child’s type (#13504).
    • Ctor.method = function() {} adds a static method to the constructor (#15199).
    • Expression variable definitions get the type of their value (#6166).
    • A parent constructor’s errors are no longer copied into its children (#5426).
    • @context accepts a type in braces (#6886).
  • Completion:
    • Completion works after chained calls, including function literal arguments and one call per line (#12064).
    • Macros are offered at a struct literal’s key, and nameof(x) works as a key (#14281, #11875).
    • A plain function’s statics are no longer offered as globals (#10281).
  • Syntax checker: a macro used through another macro is no longer reported as unused (#10331).

Code Editor 1

  • Matching words stay highlighted after you select a word (#16353).
  • Code in a read-only project can’t be edited (#7142).
  • Fixed a crash (stack overflow) while typing in a script (#14998, #15062).
  • Dragging a script or event tab onto another workspace’s tab moves it there again, including after reopening the project, and dropping it on an empty part of the workspace tab bar opens it in a new workspace tab (#16435).

Notes and Markdown preview

  • Zoom for the Markdown preview (see Highlights) (#5223).
  • project:// and file:///${project_dir} images show in the preview (#14227).
  • Internal links no longer scroll past the end (#6743).
  • Korean text no longer overlaps (#16334).

IDE

  • Go To (Ctrl+T) lists every function whose name contains what you type, in any case. Closing it gives focus back, and Escape closes it (#7199, #982).
  • Files changed on disk: when files in your project change outside GameMaker, for example after a git pull, the prompt’s Save button is now “Keep my version (overwrite disk)”, and you must confirm before it writes over the changed files. Until you choose Reload or Keep my version, saving the project is blocked and the prompt is brought back to the front, so your copy can’t overwrite the changed files by accident. Files with unresolved merge conflicts are no longer reloaded but listed in a “Merge conflicts: not reloaded” notice, while other changed files are offered for reload as usual, and each conflicted file reloads like any other change once you resolve it on disk. Saving skips the conflicted files so the merge is never overwritten, but still saves your other changes. If the project file changed too, saving also leaves it and the other files the pull changed as they are on disk, and once the conflicts are resolved the project reloads and you choose Reload or Keep my version for those files. This works whether or not you use the built-in Git integration.
  • Merge conflicts on open: if a project can’t open because git merge conflict markers were left in its project or asset files, the IDE now says it has merge conflicts and lists every conflicted file, relative to the project folder, with the line of its first conflict, followed by any other load errors. Previously, conflicts in the main project file showed a message saying the file was corrupted and suggesting you restore a backup.
  • Projects: saving a project no longer rewrites the IDE version stored in the main project file, so teams on different IDE versions no longer get changes or merge conflicts in that file just from saving. Saving also only writes the changes you made: opening and closing the Texture Groups window with a non-default config selected no longer adds that config’s settings to the project file (which also stopped later changes to the default texture group from reaching that config), and a tileset’s output image or a sprite frame is no longer rewritten when its pixels haven’t changed (#8444, #5130). Opening a project no longer rewrites any files, and fields that are out of order (for example after a hand merge) are now tidied without touching the files on disk. If a project’s files need upgrading to a newer format, the IDE now tells you how many resources will change and lets you choose Upgrade or Cancel, so you can commit your work first and then commit the upgrade on its own. New projects, templates and YYZ imports are still upgraded without asking.
  • Workspaces: renamed workspace tabs keep their names when you reopen a project instead of coming back blank and impossible to rename, and tabs that were already saved blank reopen with a “Workspace N” name that can be changed again (#16434).
  • Extensions: macros can be hidden from code completion with a new Hidden column in the Macros window (#1271).
  • Preferences:
    • The Text Editors > Code Editor page opens and closes quickly with many fonts installed (#16347, #16342).
    • Import Preferences brings Code Editor 2’s colours (#15041).
    • “Object double click opens all object events” is labelled as Code Editor 1 only (#6657).
    • The Sprite Editor’s default animation speed accepts decimal values such as 0.5 (#15721).
    • A runtime tool path that no longer exists, such as an old local build in Path to Asset Compiler, falls back to the runtime’s own tool instead of making every build fail with a missing bin/GMAssetCompiler.exe (#16497).
  • Toolbar: the zoom in, zoom out and reset zoom buttons are no longer always greyed out. They work while a workspace tab is selected and, like the zoom shortcuts, zoom the workspace on screen, even if you picked it from the tab drop-down or just closed another workspace tab (#16474).
  • Asset Browser: folders are no longer shown twice when a project’s folder list leaves out parent folders (#16361).
  • Prefab Library: a group with the same name as its prefab shows as a normal folder with all its assets side by side, instead of its first asset appearing as a folder with the group’s other assets inside it (#16466).
  • Rooms: reloading an externally edited RoomUI.yy no longer throws an error and leaves the project unable to save (#16356).
  • Sprite Editor: scaling a sprite that has Nine Slice enabled (Image > Scale Image) adjusts the top and bottom slice guides as well as the left and right ones (#6786).
  • Particle System Editor: the direction indicator points at the correct angle for new or duplicated particle systems, stays in the right place at display scales above 100%, and looks smooth instead of blocky (#11516).
  • Terminal window: Views > Terminal opens a shell in a panel docked with the Output windows, starting in the project folder (or your home folder with no project open). It runs PowerShell on Windows (PowerShell 7 if it’s installed), your login shell on macOS and your shell on Linux.
    • Full-screen programs work: the mouse wheel goes to programs that use the mouse (such as vim and htop) and scrolls programs like less and man. Shift+PageUp, PageDown, Home and End move through the history.
    • Drag to select, double-click for a word and triple-click for a line. Copy with Cmd+C on macOS, or Ctrl+Shift+C (or Ctrl+C with a selection) on Windows and Linux. The right-click menu has Copy, Paste, Select All and Clear.
    • Ctrl+click (Cmd+click on macOS) opens file paths, file:line locations, URLs and asset names, with relative paths taken from the shell’s current folder.
    • When the shell exits, press Enter to start a new one.
    • It uses the Output windows’ colour settings. Emoji and other characters outside the Basic Multilingual Plane now draw properly in the IDE instead of as ?.
  • Output windows: the Output, Source Control, Project Tool and Project Health windows have colour, links and error navigation, set up in Preferences > General Settings > Output Windows. Search Results gets the highlighting.
    • Colour: colours and text styles from tool output are shown (Show colours from tool output), and build tools are asked to colour their output (Ask build tools for coloured output). You can change the ANSI palette, keep coloured text readable against the background, and show bold text in the bright colours.
    • Highlight rules: colour any text that matches a pattern. Edit the rules in Preferences, with a live preview, or right-click selected text and choose Highlight This (or Highlight in Project, when the project has its own rules file in its options folder, so everyone working on it gets the rule). Remove Highlight takes a rule away again.
    • Links: Ctrl+click (Cmd+click on macOS) a compile or runtime error location to open it in the code editor, as the Compile Errors window does. Project GML files open as their asset, other files are shown in their folder (or opened if they are text, never run), and URLs open in the browser. Asset names are highlighted in the code editor’s asset colour and open like a double-click in the Asset Browser. Links and highlighting always appear and stay clickable when the computer is busy, such as during a build.
    • Errors and filtering: a bar counts the errors and warnings, with Next and Prev buttons, and F8 and Shift+F8 jump to the next or previous error. The right-click menu can filter the output to lines containing some text, to errors only, or to errors and warnings.
    • Export: Export as HTML… saves the output as a web page and Copy as HTML copies it, with the colours as shown (on Linux, Copy as HTML copies plain text).
  • SVG vector sprites:
    • Importing uses the colour set in an element’s inline style (including gradient stop colours) when the same property is also set as an attribute, so files recoloured in Inkscape import with their new colours (#16409).
    • Importing fills the whole shape when a path contains a very thin sliver (such as the tiny pieces Figma exports for outside strokes), instead of leaving a wedge of it empty (#16415).
    • A group’s opacity applies to the group as a whole, so overlapping shapes in a translucent group no longer look darker where they overlap or show through each other, and nested opacity values multiply instead of the innermost one replacing the rest (#16414).
  • Text: if your chosen font has no Latin letters (for example in its bold face), the IDE falls back to another font instead of drawing boxes (#8747). Chinese text comes from a single fallback font, so characters no longer differ in size and weight (#15715).
  • IME: clicking while composing ends the composition instead of being ignored (#1074).
  • Scroll bars: an always-shown opposing scroll bar no longer hides part of the content (#8881).
  • Startup: the low disk space warning shown before a runtime installs during startup wraps its message inside the dialog and shows its full button labels, and other sign-in messages shown during startup are laid out correctly too (#14795).
  • Steam: changing the theme and restarting no longer fails when the IDE was started from its install folder rather than from Steam (#16214, #16196).

Platforms

  • macOS: the Edit menu has Cut, Copy, Paste and Select All (#16365).
  • macOS: fixed the IDE drawing at half size with misaligned button hitboxes on some Retina Macs (seen on dual-GPU Intel MacBook Pros) (#16387).
  • macOS: validating the IDE’s bundled project tool package in the Package Manager no longer reports it as invalid and asks you to reinstall it every time (#16432).
  • Ubuntu: Create Executable asks for AppImage or Zip again, suggests a file name and adds the extension. On macOS the package type is also asked up front, so you no longer have to type .zip (#14371).
  • Windows: Smart App Control no longer blocks the IDE or its plugins from starting, because all of the IDE’s own programs and libraries are now digitally signed (#16444).
  • Windows: with Smart App Control on, installing GameMaker over an earlier version removes the earlier version and finishes, and if the earlier version can’t be removed the installer says so instead of closing without a message.

Stability

  • Fixed a crash while coding with Code Editor 2 (font rendering on a background thread) (#14631), and Code Editor 2 problems such as a failed hover tooltip, code action or language server restart are now logged instead of crashing the IDE.
  • Fixed a crash, followed by a black IDE, when the Code Editor 2 code map drew on a closed debugger window (#16337).
  • Fixed a crash while scrolling the code editor (#16327).
  • Fixed a crash while idling (#16326).
  • Fixed a crash after compiling with YYC when build output contained Mongolian characters, caused by a system font that can’t load its glyphs (#16221, #15920).
  • If no graphics driver works at startup, the IDE shows a message and exits instead of crashing on every launch (#16370).
  • Fixed a crash when opening a project with missing included files (#16249).
  • Fixed a crash when a template download finished after you’d gone offline or clicked New (#16199).
  • Fixed a crash when pressing F12 (Expand/Collapse Docks) with a floating editor panel focused (#16226).
  • Fixed a crash when undoing repeatedly in Game Options > Android (#16336).
  • Fixed a crash when generating Android adaptive icons from Game Options while another Game Options window, such as Main’s General page, was also open (#16396).
  • Fixed a crash when pressing Ctrl+Z quickly after adding several moments in the Timeline Editor, and each undo now removes one added moment (#15537).
  • Fixed an occasional crash when editing or duplicating sprite frames (#15090, #16266).
  • Duplicating a sprite shows the copy’s real frames instead of a garbled image, and deleting a duplicated sprite and duplicating it again no longer crashes the IDE (#16431).
  • Sound previews: failed audio conversions and renamed or deleted sounds are handled without crashing (#16390).


Runtime

Highlights

  • The compiler and the runtime now agree. Expressions the compiler works out ahead of time now give the same result as when they run, and many more built-in functions with constant arguments (string, hashing, colour and maths functions) are worked out at compile time (#16191, #14968).
  • Mistakes that went unnoticed are now errors. Writing to an argument that wasn’t passed, multiplying a string by a number, returning an unset variable in YYC, and var x = x; used to fail silently or corrupt other code. They now report an error (see below).
  • room_get_info can return instance variables. A new optional 8th argument, variables, gives each instance a variables struct with the values set in its pre-create event and its instance creation code (#15764).
  • OpenGL fixes for macOS and the other OpenGL platforms: faster text drawing, no more corrupted text and vertex buffers, and fixes for multiple render targets, fog and alpha test in user shaders, and shader compile errors.
  • Non-rectangular viewports (experimental). The new view_set_viewport() function draws a view through a polygon shape instead of a rectangle, and maps mouse and touch positions to the view whose shape contains them (see below).

Behaviour changes

These may change what an existing project does:

  • On the VM and YYC, writing to an argument that wasn’t passed to a function (for example argument3 when only two were passed) is now an error: “Unable to set argumentN, argument is not provided to the function”. It used to overwrite the caller’s values, which could make a repeat loop run forever (#15992).
  • Multiplying a string by a number is now an error in YYC and HTML5, as it is on the VM. Multiplying a negative number by a string no longer crashes the game without a message (#16192).
  • YYC: a function that returns a variable that was never set now reports an error (#15991).
  • Using a variable in its own var declaration (such as var x = x; or var x = x + 1;) is now a compile error, unless it is already a local variable (#15631).
  • A #macro whose name isn’t a valid identifier (such as a string, a number or a reserved word like if) now stops the build with an error. It used to be silently dropped. This includes macros for other configurations.
  • The Image Loaded async event now gives the id of a sprite made with sprite_add_ext as a sprite reference, not a number (#4328).
  • part_system_get_info returns an empty emitters array, not 0, for a particle system with no emitters (#6450).
  • [HTML5] Setting a struct or instance variable with an empty name (for example with s[$ ""] = 1, struct_set(), variable_struct_set() or struct_set_from_hash()) now throws the error “illegal to use empty names”, as it does on other platforms, instead of quietly creating a "" key (#16400).

GML and the compiler

  • Values worked out at compile time now match the runtime. At run time, on every target (#16191):
    • a real div an int64 gives a real;
    • - of a boolean gives a real (-1 or -0);
    • shift counts wrap at 64 bits (32 for 32-bit values);
    • a comparison with NaN is never equal;
    • a boolean compared with a string compares the string as a number;
    • chr() of a negative number, a number above 0x10FFFF or a surrogate gives an empty string;
    • YYC: div by zero is an error, and div gives an integer only when both sides are integers.
  • More built-in functions with constant arguments are worked out at compile time, and the ones that already were now give the runtime’s result (#14968):
    • strings: string_copy, string_delete, string_count, string_pos_ext, string_last_pos, string_last_pos_ext, string_ord_at, string_trim, string_trim_start, string_trim_end, string_format, string_replace, string_replace_all, string_letters, string_digits, string_lettersdigits, string_length, string_byte_length, and string_upper and string_lower for ASCII text;
    • hashing and Base64: md5_string_utf8, md5_string_unicode, sha1_string_utf8, sha1_string_unicode, base64_encode, base64_decode;
    • colours: make_colour_rgb, make_colour_hsv, merge_colour;
    • maths and types: lerp, point_distance, dot_product, dot_product_3d, angle_difference, degtorad, radtodeg, frac, round, is_string, is_int32, is_callable.
  • A struct method with the same name as a built-in function (such as abs) is called when given a constant argument, instead of the built-in being worked out at compile time (#16304).
  • A script function in a struct literal passed straight to a method or constructor no longer arrives as a number (#16302).
  • A constructor that inherits from one that can’t be found now gives a clear error (#15656).
  • Converting NaN or a real that is out of range to a 32-bit integer gives the same result on every platform. It used to differ on ARM (#16320).

YYC

  • Reading a static variable after setting it in the same method gives the new value (#16301).
  • mod of a division no longer fails to build (#16119).
  • Code that reads instance variables through an object, such as obj_demo.current_map_time, inside with blocks no longer makes the build log a stream of “declaration of ‘g_fSuppressErrors’ hides previous local declaration” compiler warnings (#16471).
  • Setting headPosition, and the other properties of a sequence instance, in a sequence event now works, including on GX.games (#1697).

Functions

  • room_get_info has a new optional 8th argument, variables (default false). When it is true, each instance in the result has a variables struct with the values set in its pre-create event and its instance creation code. With the 7th argument, live, set, room_get_info now lists the room’s instances as they currently are, with their current position, scale, angle, colour and image values (including instances created at runtime and deactivated instances, but no longer destroyed ones), and correctly reports layer endScript, text element line_spacing and paragraph_spacing, and tile and sequence image_alpha. [HTML5] On HTML5, live set to true now returns the current room, or a persistent room that has already been visited, as it currently is, including runtime changes to instances, layers and tilemaps, instead of always returning the Room Editor layout, and it no longer hangs on rooms that have a particle system on an asset layer (#15764, #16349).
  • buffer_copy no longer skips a source buffer that has nothing written to it (#16308).
  • The new buffer_utf8 data type reads or writes a single UTF-8 character as its code point. Malformed bytes read as U+FFFD (65533), and invalid values are written as U+FFFD. buffer_read() and buffer_peek() take an optional size argument, which reads exactly that many bytes as a string with buffer_text or buffer_string (#16485).
  • Nine-slice sprites that are scaled get collision bounds that follow their repeat modes (#13840).
  • collision_point(), collision_point_list(), instance_position(), instance_position_list() and position_meeting() test the pixel a point falls inside when checking against a Tile Map, as they do for instances, instead of rounding fractional positions to a neighbouring pixel (unless collision compatibility mode is on) (#16423).
  • Collision functions such as place_meeting() and collision_point() check against the right tile masks on Tile Maps whose Tile Set uses tile separation (#16420).
  • SVG and SWF sprites: fixes for sprites that could draw with the wrong cached image, and sprites tiled in one direction on a background layer now follow the layer’s offset.
  • DDS textures added with texturegroup_add() show the right mip levels and respect gpu_set_tex_mip_enable() being off. Uncompressed 32-bit RGBA and BGRA DDS data no longer crashes the game, and DDS data in a format the runner can’t read now raises a GML error (#16441).
  • Non-rectangular viewports (experimental): the new experimental function view_set_viewport() lets you draw any of the eight views through a polygon shape instead of a rectangle (concave shapes work), and set its port position and size and the area of the room it shows. The settings are passed as an array of structs or as a JSON string. Each view can also have optional start and end functions that run before and after it is drawn, for example to set and then reset a shader. Mouse and touch positions such as mouse_x and mouse_y are mapped to the view whose shape contains them. The function also works on HTML5. [HTML5] On HTML5, an empty polygons array that turns off a view’s polygon during a Draw event no longer ends the game with an “Unbalanced surface stack” error, setting only some roomRect* fields no longer resets the others on the view’s camera, fractional roomRectX, roomRectY, roomRectW and roomRectH values are kept instead of being rounded to whole numbers, so the view’s camera gets the exact position and size you pass in, and odd-length or non-finite polygons, screen* and roomRect* values now give an error.

Graphics (OpenGL)

These apply to macOS and the other platforms that draw with OpenGL.

  • Text drawing is faster, and text and vertex buffers are no longer overwritten before they are drawn or shrunk until they are too small.
  • After drawing to multiple render targets, drawing to surface target 0 works again (#16321).
  • User shaders get the current fog and alpha test settings (#16322).
  • shader_set with a shader that failed to compile now reports the compile error (#16323).

Input

  • macOS gamepad fixes: the face buttons of Nintendo Switch Online SNES controllers, a second controller, and raw button numbers that were shifted (#16179).
  • A gamepad mapping that points a button at an axis the controller doesn’t have no longer crashes the game (#16178).
  • display_mouse_get_x and display_mouse_get_y give the right position on macOS (#2034).
  • [macOS] Games set to start fullscreen take keyboard input straight away, without a click on the game window first, and key presses no longer play the system alert sound (#16439).

Platforms

  • iOS: the game no longer stalls for about 10 ms every 5 seconds, which dropped a frame (#16209), and older devices no longer flash white at launch (#5620).
  • Windows: using an ASTC texture now gives an error that says what is wrong (#16328).
  • GX.games: application_get_position, display_mouse_get_x and display_mouse_get_y give the right values (#12189).
  • macOS and Linux: the build tools report the game’s process, so stopping a game ends only that game and not games run from another IDE.
  • [Ubuntu] On Linux, text copied with clipboard_set_text() can now be pasted into GTK apps and other apps that check what the clipboard holds, instead of those apps treating the clipboard as empty (#16486).

HTML5

  • tilemap_get returns -1 outside the tilemap, tilemap_get_at_pixel and tilemap_set_at_pixel handle the bottom edge correctly, and tilemap_set and tilemap_set_at_pixel return true or false (#16374).
  • layer_sequence_create with a struct from sequence_create() plays the right sequence (#16381).
  • [HTML5] layer_particle_get_blend() returns the colour set with layer_particle_blend(), instead of returning it with red and blue swapped when WebGL is off, or returning 4294967295 instead of c_white for particle systems created at runtime (#16422).
  • [HTML5] With WebGL turned off, image_blend returns the colour that was set instead of one with red and blue swapped, and instances drawn by the default draw event or with draw_sprite_ext() using image_blend are tinted the right colour (#16421).
  • [HTML5] In games seeded with randomize(), or with random_set_seed() with its second argument set to true, random functions no longer cause frame-time spikes and memory use that keeps growing the longer the game runs. Seeded random sequences in this mode may now differ from earlier versions (#14435).
  • [HTML5] Sounds played in the same step now start exactly together, so layered music tracks and sounds meant to play in phase no longer drift a few milliseconds apart, and audio_sound_get_track_position() reports the position you actually hear.

Code completion data

  • GMRT’s collision_point_array, collision_rectangle_array, collision_circle_array, collision_ellipse_array and collision_line_array are coloured and completed in the code editor, with parameter help (#14943).
  • handle_parse returns Any (#4630).
  • The structs returned by part_system_get_info and particle_get_info are described, so their members complete (#6450).
  • Functions that take one of a set of constants, such as tag_get_asset_ids, list them (#16345).

Building

  • Building a game no longer changes any files in the project, such as the resource order file, files the build had tidied or upgraded, or effect prefab libraries in the project’s local prefabs folder. Source control no longer shows unexpected edits after a build.
  • A build stops with an error naming the extension and file when an extension file, or an entry in an extension zip set to uncompress, would be written outside the game’s output folder. If a file in an extension zip can’t be extracted, the build fails with an error after a few attempts instead of retrying forever.
  • [Windows] Windows Smart App Control no longer blocks the libraries and bundled tools used to build a game on Windows, because these files are now signed (#16444).

Stability

  • Saving a buffer of size 0 no longer crashes the game (#16219).
  • Games no longer crash on exit when a recognised controller is connected, for example a dual-port USB adapter that shows up as two gamepads with the same GUID on Ubuntu (#16468).
  • Maps created by ds_map_create() with a size of zero or less (for example through method()) no longer crash the game or read and write memory outside the map.
  • Assigning a number or other non-string value to caption_score, caption_lives, caption_health or error_last stores it as a string instead of crashing the game, and reading these variables repeatedly no longer corrupts memory and causes later crashes.
  • [macOS] Games in a folder under /private, such as the system temp folder, no longer crash on startup. When the runner can’t find or read the game, it now says why and ends the run, instead of crashing, waiting for someone to pick a file, or showing a Download panel that could crash when you quit it.
  • [Ubuntu] Linux games no longer crash when they start the debugger or first use networking while a VPN tunnel, or another network interface without its own address, is active (#16425).
  • [Windows] Windows games no longer crash on exit when an extension or another library has shut down Windows’ COM system before the game closes.
  • sprite_delete() on a sprite that texturegroup_add() made to replace one of the game’s own sprites now restores the original sprite. Its name works with asset_get_index() again, a later texturegroup_delete() no longer crashes, texturegroup_get_sprites() no longer lists deleted sprites, and deleting one texture group no longer undoes another group’s replacement of the same sprite (#16449).