I think it’s pretty obvious that I have no idea about JavaScript, especially when it comes to GDevelop. I’m trying to learn it. Also, I hope you understand my problem, my english is not that good.
Hello luxako, You have declared the variables and assigned them before calculating their value. Place your two lines runtimeScene.getVariables() at the end of the code. I think you should be satisfied with this.
Best regards. Alexandre