Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JujuAdams/Coroutines
Coroutines for GameMaker Studio 2.3.6+
https://github.com/JujuAdams/Coroutines
coroutines gamemaker gamemaker-studio-2 gms2
Last synced: 1 day ago
JSON representation
Coroutines for GameMaker Studio 2.3.6+
- Host: GitHub
- URL: https://github.com/JujuAdams/Coroutines
- Owner: JujuAdams
- License: mit
- Created: 2021-10-28T15:31:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T11:11:31.000Z (9 months ago)
- Last Synced: 2024-04-12T20:39:00.795Z (7 months ago)
- Topics: coroutines, gamemaker, gamemaker-studio-2, gms2
- Language: Game Maker Language
- Homepage:
- Size: 156 KB
- Stars: 69
- Watchers: 6
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gamemaker - Coroutines - Asynchronous functions for GameMaker. (Utilities / Recommendations)
README
Coroutines 1.4.0
Asynchronous execution in GML for GameMaker Studio 2.3.6 (and above)
This library allows you to write pauseable functions in GameMaker. These pauseable functions are called "coroutines": a block of code that can be paused in the middle of execution and resumed later. Coroutines can be used for UI animation, complex networking protocols, REST API and OAuth flows, multi-stage visual effects, asynchronous save/load (required for console development), and more still. They're fantastically useful.
Getting coroutines to work in GameMaker is one thing, but making them fun to write requires a creative solution. Instead of implementing a slow custom scripting language or editor-side extension to generate coroutine-esque code, this library uses native GML macros to extend GML syntax to accommodate coroutine definitions. You can read all about the new syntax [here](https://github.com/JujuAdams/Coroutines/wiki/Coroutine-Syntax) or understand how and why it works [here](https://github.com/JujuAdams/Coroutines/wiki/How-do-we-extend-GML%3F).
Because this library uses native GML at its core it is cross-platform, requires no additional software, and requires no external Included Files. The codebase is MIT Licensed and can be used everywhere, for free, forever. Regretably, GameMaker's HTML5 runtime is hot garbage and as a result this library is not supported for HTML5.
***Please note** that due to changes made in GMS2.3.6 to async event constant names, you will need to modify library code to get it to compile in versions older than v2.3.6.*