Hi, i don't know if my post is in the good section but well, I have a bug with the System wait command in a "While", it just freezes my game completely (i have to "Alt F4" it), I tried to use System wait in other places in my code and it works fine
Here is the screen (Remove the " " between <htt> and <p>) :
(The array is a 2D Array)
(as i said, it doesn't wait the game just stop working, as if the wait command was repeated 1000000 times)
What i don't understand is that this loop works fine without the System wait command.
If anyone can see what would make the game freeze, that'd be cool :)
Tutorial on how to use the system wait action
You don't have any way to stop the while loop. Just take that event out and it wont freeze.
Oh sorry i forgot to descrive my array a bit more, it lookes like this :
For example, so as the while go through [n] it will go on "#end" and stop the loop. As i said this works fine without the "System wait" thing but when i add it freezes the game :/
Develop games in your browser. Powerful, performant & highly capable.
It's not a bug, your events are wrong. Read the tutorial Kyatric linked to. The 'Wait' action does not pause the loop, so you never change the value of 'i' so the loop continues forever.