Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

[Solved] Idea for GMLive integration or plugin

A topic by SnoutUp created Apr 16, 2019 Views: 503 Replies: 6
Viewing posts 1 to 3
(1 edit)

Absolutely loving the GMEdit after the few latest updates, been using it in tandem with GMLive for quite a while now and was wondering if it would be possible to improve their integration via plugin or GMEdit update. I'm thinking about something like a checkbox in context menu which toggles live_call() code at the top of the script (I guess a tricky part would be to detect if script has arguments) or having a short string like #live would do something similar. If that makes any sense.

One way to go about this would be snippets, which would save some time, but wouldn't make code cleaner.

Developer

I do have a plugin like that lying around somewhere (added a code editor keyboard shortcut to "toggle" the live_call line) but I proceeded to over-scope it by deciding that it'd be neat to allow inserting live_call line into every event at once. I'll get to this soon.

Was searching for something like this but couldn't find it. Was this done?

Thanks

Developer

Snippet support was added since then and can be used to add an auto-completion item that inserts a live_call line / live_call_ext lines

A global toggle for live functions (and maybe the live_enabled macro) would also really help when pushing your project to a public repository.

I've tried using GMEdit's global replacement but it had weird behavior sometimes (it would comment the line, but also put them on the same line as the #event line).

Developer

That is a job for configurations - add a GML extension with a few dummy scripts for live_calls (which would all just return 0) and disable GMLive extension (in extension properties) for all platforms, then add a new configuration where this extension is disabled and GMLive is enabled. And use `#macro live_enabled:LiveConfig 1` for config-specific macro value.

That sounds... really smart. Gonna try this, thank you!