Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Solved] Set a script to be live?

A topic by ome6a1717 created Jan 17, 2021 Views: 231 Replies: 2
Viewing posts 1 to 3

I'm probably not doing something right, but is there a way to make a script live?  Or is it only objects?

Developer

You use live_call inside the script body (so, for 2.3, that’s inside the function’s {}) and give it your script arguments, e.g.

// 2.2 and earlier
/// scr_some(a, b)
if (live_call(argument0, argument1)) return live_result;
// ...
// 2.3+:
function scr_some(a, b) {
    if (live_call(a, b)) return live_result;
    // ...
}

if your script takes varying amount of arguments, check documentation for live_call_ext.

Ahh now I understand - thank you so much!