Hello!
im in Unity 2D rpg combat system lecture, and at environment sprite/tilemap transparency we made coroutines for fading in and fading out in a set amount of time.
when i move under the canopy(leaf tiles) and wait for it to fade, move out, and move right back in, it does not properly fade smoothly, but fade instantly.
is it because it is trying to do the coroutine multiple times since we have the routinestart on TriggerEnter2D and TriggerExit2D?
i tried to think of a solution but after an hour i gave up
the game functions perfectly by the way, this does not hinder the game experience, it is something that only bothers me for sure.
so i guess my question is, how can we fix this?
sorry if my explanation isnt that detailed and thanks for the answers in advance!