Are expressions in Actions JS?

Hello everyone, I opened this thread because I wanted to have some clarification on the API that I can use in the fields that I can fill in the actions of the eventsheets.

I usually see code expressions being used basically (for example I can call Player.X() to define the X-axis position of my Player object).

So, is it possible to use expressions in javascript itself in GDevelop fields or is it a specific syntax that has nothing to do with javascript?

I hope I was clear, thanks for your support and all the work you are doing on gdevelop!

These are gdevelop specific expressions and while some of them may directly link back to an equivalent javascript call elsewhere, these expressions are not javascript themselves, nor interchangeable with JS (or vice versa)

You can even make your own expressions using events with the built in function system Functions [GDevelop wiki]

2 Likes