Skip to main content

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

Hi again, yellow, now snippets aren't working. I've already sent the example project (it's literally a simplified version of the example code from the GMLive manual)

Fortunately, live_execute_string() is working fine, so I have an alternative for now (even tho you're saying it's far slower)

(+1)

Turns out that this is a bug too...

I can add a workaround for this though.

What a legend!


Also I'm not sure if it's fixable at all (it's probably nested inside the GMS 2.3 nature), but local variables from outer scope don't work inside live_execute_string(). (They don't work properly inside of 2.3 functions scope either), fortunately I've already designed a workaround so it's not that big of an issue.

e.x. function(target) {

live_execute_string("trace(target);")

}

^ doesn't work, unless you add self.target = target before the live call (which may or may not have circumstnces)

(+1)

This goes against how 2.3 works in general - functions don't share local scope.

I can add the ability to pass an optional argument into live_execute_string so that you could pack up all your variables of interest into an array or a struct.

That makes sense, live_execute_string_ext() would be reasonable.

Anyways, now that snippets are fixed, there's no real need for that I guess (why use live_execute_string() over snippets)

I think that this is just a very low priority feature