6 thoughts on “GameMaker Now Supports Increase/Decrease Operators”

  1. Very happy YoYo added this. Along with the var name = 10, I think this is the best update! The next thing I’m waiting for is to pass arrays into scripts. <3

  2. Hurrah! I think GML is looking like a better and better language for development, though I would recommend adding variable declaration (i.e. “var enemyCount = 3” like Javascript). I can’t count the number of times I’ve created a new variable when I intended to assign a value to an existing one simply because I spelled the identifier incorrectly! I would also recommend forcing the “=” operator to be equality-only (“==”), since it might be confused with the assignment operator.

  3. Please could someone explain the significance of the addition of the Increase/Decrease Operators? I’ve read a bit about them for C++ but they seem to just be equivalent to +=1 or -=1. I’m sure there must be more to it than that from people’s reaction to the news!

    1. There’s no more to it than being a shortcut for +=1/-=1. The reason it’s such big news is because it’s so common across many, many programming languages, but has never been supported in GameMaker.

Comments are closed.

Log In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy

Add to Collection

No Collections

Here you'll find all collections you've created before.