Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Fixed] Not working in Draw GUI Event (GMS2)

A topic by Nikles created Jan 13, 2018 Views: 2,432 Replies: 5
Viewing posts 1 to 5
(1 edit)

Hello everyone,
I'm having issues using this extension in the Draw GUI event. It works perfectly in the Step Event and the Draw Event. Any idea?

(btw this thing is revolutionary!)

Developer

I have tested this in both GMS1 and GMS2 but cannot seem to reproduce the issue.

Are you able to reproduce this in a blank project / are you doing anything specific?

It's all about a semicolon; I code mostly without them (probably due to my python background).

Here's a video showing the behavior (I edit a "show_debug_message" but the live-changes are picked up based upon the presence or absence of a semicolon a bunch of lines before). Took me some time to figure this out, sorry.

Is this something I have to keep in mind and just start using semicolons?

Thank you

Developer

Ah!

If you check the output log,


you can see the errors in there.

That is indeed a mismatch between GMLive and GMS2, though that is interesting - that syntax was not allowed when I last checked, as GM <= 8 did not require commas between variable names in declarations, so you could do

var a b c

instead of

var a, b, c

Then in GM8.1 ability to initialize local variables was added, but the space syntax still stayed, so

var a, b
c = 1

would compile as

var a, b, c = 1

which was making a pretty big mess in some cases.

So the compiler was later made to show an error when trying to do that.

That error then stayed in GMS since people would still import projects with old-style code.

It is good that it was eventually removed though. I'll get rid of that alert in the next version then.

Developer

Version released today fixes this.

Awesome! Thanks again!