Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+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