M1 system boolean variable overlap

https://gyazo.com/0f3f7ced83124ad421238d744ad14250

While working on my M1 system, I noticed that I needed a way to check if an “M1ing” status was active. To achieve this, I used a boolean variable. However, the current implementation causes the variable to turn false when it shouldn’t. This happens because I disable the variable after every M1 animation ends, so it gets disabled even if a separate animation is starting.

I already have a potential solution in mind to resolve this, but I’m not sure if it’s the most efficient approach.

In the video, you can see how the variable changes.

Does anyone have other suggestions for resolving this issue?
(VIDEO DOESNT EMBED, JUST CLICK ON IT)

Set M1ing value to false when currentCombo ends such as the last combo or currentCombo = 4. I’m guessing that you have a system where the combo resets after a certain amount of time. That’s also where you would make M1ing false.

1 Like