You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run vuurwerk in normal mode and in debug mode and you will see the following difference:
normal mode
debug mode
It seems like the circles do not move in a random direction when in debug mode, a lot of them share the same direction. But this block certainly tells each clone to pick a random direction:
It seems like variables are being shared among clones when logged and this is unwanted behavior.
The text was updated successfully, but these errors were encountered:
I think I know what the problem is. It seems like this bug only happens when the firework is fired before all (300) clones are initialized. If all clones are initialized, everything works like in normal mode.
So the problem is the following:
While the firework is firing, clones are still being created. When a clone is created, its place on the canvas is the place of the original target. This target is firing and moving forward in some direction. Because the newly created clones did not receive the bang signal, they aren't doing anything. Therefore, a long line of clones is created (following the original target) that does not go away (the bang script normally makes them fade away) until the next firework is fired.
Because the debugger logs each step and this takes some time, it takes way longer than in normal mode to initialize all clones. In normal mode it is almost instant.
henricattoire
changed the title
Bug: potential issue shared unwanted variables among clones.
Bug: firework (debugger logs).
Dec 13, 2023
Problem:
Run
vuurwerk
in normal mode and in debug mode and you will see the following difference:It seems like the circles do not move in a random direction when in debug mode, a lot of them share the same direction. But this block certainly tells each clone to pick a random direction:
It seems like variables are being shared among clones when logged and this is unwanted behavior.The text was updated successfully, but these errors were encountered: