Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Implemented in 1.0.48+] variable called `this`

A topic by Evoleo created Apr 25, 2021 Views: 217 Replies: 2
Viewing posts 1 to 3
(1 edit)

So I'm a fan of JS-style `this` keyword and in GM I would make a macro that would map to `self`

It's a purely visual thing, no big deal, but I would still like if GMLive didn't conflict with it :(

It's not that hard for me to manually rename all occurrences of `this` to `_this` in GMLive files using Ctrl+F, but it's tedious if you have to do it every GMLive update

So yeah, would be cool if the transpiler turned it into l_this or something. It's in no way a thing of priority, but it's a nice little addition :p

Developer

This is done in 1.0.48+ (and also committed to sfGML)

tyty