Here, normally both event block will execute one after another. But how can I make gdevelop skip the second block if the first block is true. Simply, I want to execute only one block at a time here. Just like the if-else condition.
The way to do it is to set a variable to 0 before the both blocks and make a condition in the second Bloc that checks if the variable is still 0 and set the variable to 1 in the actions of the first block.
But I don’t understand how can I use JavaScript here in Gdevelop well.
It would very helpful if I could see the JavaScript behind event blocks. (I’ve checked javascript examples though)
It’s easier to understand and work with sub events.
And I’m using global variables because I want to affect all over the game not just in one scene.
Like if particles are off that should affect all the scenes in the game.