Hi everyone!
An event that adds a numerical value (in this case, it's 1) to a variable everytime an object is "picked up" (overlapped by player sprite and then destroyed) has started to multiply the numerical value by 4.
Here is the code in text form:
[RainbowCoin Behaviour]
----+ Sprite: On collision with rainbow
----+ Sprite: Is overlapping Overlays
-----> Overlays: Add 1 to OverLayColour
-----> rainbow: Destroy
It used to work fine, now it multiplies the 1 in Add 1 to OverlayColour by 4 for no discernible reason.
If I change the numerical value to 0.5, it adds 2 to the OverlayColour variable, which is consistent with the 'multiply by 4' hypothesis.
The OverlayColour variable is a Family Variable. To test whether the family variable was causing the issue, I changed the event to affect each individual overlay, but the result was the same: still multiplying by 4.
I can't figure out why the event is suddenly reacting this way: I believe that there aren't any other events that contribute to this problem. Of course, there is a reason for this, so I need help finding it!
Here's a link to the project file:
drive.google.com/file/d/1nV3xU6mORatAc3GX--JUzS1QB_4kpAtU/view
Let me know if you try to download it and it fails for some reason.