is there any special reason why you set colliding to collision and check colliding instead of checking collision directly but put set to false after checking?
Yes, there is an important and convenient reason.
If you check the
boolean directly and set it to
false after checking, then it will always be
false if you check it again in any other event. However, if you check the
boolean, then you will be able to check it again in any other events where you could need to know if the actor is currently colliding or not.
In summary: If you check the
boolean, you can check the actor collision state in one event only.
If you check the
boolean, you will be able to check the actor collision state in multiple events.
So, checking the
boolean is
much more reliable and useful.
(Try to check both booleans in more than one event and you will quickly understand what I mean.)