Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

BlendEquation constants from new GMS update (2024.4.0.137) give an error in live code

A topic by k47 created 25 days ago Views: 53 Replies: 3
Viewing posts 1 to 4
(1 edit)

The new GMS update (IDE 2024.4.0.137, Runtime 2024.4.0.168) introduced Blend Equation manipulation functions, like "gpu_set_blendequation" and "gpu_set_blendequation_sepalpha": [link to the manual]

These functions utilize new constants:

bm_eq_add, bm_eq_substract, bm_eq_reverse_substract, bm_eq_min, bm_eq_max

These constants cannot be present in Live code however, else they give an error.

For anyone also having this error, a quick workaround is to setup "intermediate" functions that are not Live, to which you provide Live-valid values to turn into these new constants, like this:

https://imgur.com/a/vxUziqo

With this you can safely use the new functions in conjunction with GMLive by calling, for example, setBlendEqSep("bm_eq_min","bm_eq_add"), using strings instead of the constants.

Developer

The workaround is to use live_constant_add

It is not possible to auto-retrieve retrieve constants while the game is running, so GMLive won’t know about them until I update the extension.

Developer

Added these in 1.0.76