JujuAdams / Scribble

Efficient, internationalized, multi-effects text renderer for GameMaker
https://www.jujuadams.com/Scribble/
MIT License
335 stars 47 forks source link

Compiler issues when imported into a GameMaker Studio 2.3 Beta project #91

Closed lukehollenback closed 4 years ago

lukehollenback commented 4 years ago

I tried using Scribble in a project that I have been playing around with in GameMaker Studio 2.3 Beta. When I tried to run the project, I got the following compiler errors ↝

Screen Shot 2020-07-07 at 11 03 36 PM

All I had consumed at that point in the project was the following in a global initialization script ↝

scribble_init("", "fNovember", false)

And then the following in a Draw HUD event ↝

scribble_draw(128, 128, "Hello, world!")
DragoniteSpam commented 4 years ago

Using the gms230_6_0_7e release for 2.3 should fix compiler issues if you're not already using it, although different updates to 2.3 have different issues. In particular, if the error is the compiler complaining about a ++variable right after an if statement, just wrap { } around it to make it go away.

lukehollenback commented 4 years ago

Ah yes – using the correct package resolved my issue 🤦‍♂️. Thanks for the help!

glitchroy commented 4 years ago

Just to add to what @DragoniteSpam said - I just replaced ++var with var++ because I deemed it to do the same thing in the context it was reported it, but adding {} seems to be safer. Thanks!