Bugfix: crash when using Unnerve after the 2022.11 runtime ID overhaul
So it just got to my attention that in the current version of Game Maker, the game crashes when you use Unnerve - this is due to an ancient typo, and a change in how IDs works that finally made it go from harmless to an actual problem. (It's a problem in the 2022.11 runtime and potentially 2022.9 as well - nobody has pointed it out until today)
I've fixed this in the GMS2.3 source code now, but here's the location of the problem and how to fix it if your project has this issue:
Replace the indicated asterisk with a dot. This line should actually be:
n.vspeed = n.hspeed*0.391
The new fixed version of the source code has been exported from IDE v2022.11.1.56 (the latest version at time of writing) and there's been some GM file format rewrites (new tilemap format, etc) since the last export, so it might not be possible to open with older versions of GMS2, but I can make the old version available on request if necessary - please let me know.
(The GMS1.4 source code is unaffected by the problem, since IDs still are valid numbers there)
Files
Get Yal's Monster Collector Engine
Yal's Monster Collector Engine
Monster-collector RPG project for GameMaker:Studio
More posts
- Small bugfix: GMS2 ver.3Jul 19, 2024
- Source code GMS2.3 (fixed): small bugfixAug 16, 2021
- Source code v.2: minor bug fixJun 06, 2020
Comments
Log in with itch.io to leave a comment.
would "n.speed *= 0.391" work as well? I've been confused by the different ways using different gml
The idea is that the horizontal speed is proportional to the vertical speed, so it moves diagonally... I like having prime factors when I do this so there's no obvious repeats.
The code you're proposing would just slow down the effect every frame (by ~60%) so it'd work a bit differently in practice, but it'd still WORK... if you want it to do that instead.