Yeah well, this isn't working. Can someone please explain to me why it's not working?
The bool is getting toggled, but the rain isn't stopping. I tried the same with a global boolean "Raining", works even less.
Develop games in your browser. Powerful, performant & highly capable.
From what I see, it looks like you create a raindrop every tick (that's a lot of raindrops) but I don't see where you either destroy them, or set them invisible.
Do you want to hide them or remove them?
The problem here the Raindrop is the object you want to spawn and destroy.
When you press K, the construct won't know which one is toggle or not.
The boolean variable should exist on the object that not relates to the Raindrop.
Thank you! It Worked with a different object called Weather, didn't think that would work since it didn't want to work with a global variable, so I guess that's why I didn't try that at all before.
It is destroying it via a new event after it, but I didn't see any significance in including that in this question.