Is there a way to check the game version in a variable?

Just what the title asks, is there a way to check the game version in a variable?

If you store it first in that variable, yes. :grin:

Joke aside, it would make sense to have expressions that would grab some values from the project’s properties, like Game::Title(), Game::Author(), Game::CurrentVersion()…

2 Likes

So they don’t yet exist? Alright. Anyways, nice joke
:joy:

I can create an extension.
I don’t know what you want to do with it, but remember you cannot directly compare the version numbers because of the dots in the recommended format.

GameVersion::Version()

1 Like

If you just want the javascript, this is what I used:
eventsFunctionContext.returnValue = gdjs.projectData.properties.version;

You can put that in a StringExpression in your own extension class.