I don't want to open another topic, so i'll post in this if it's not a problem.
I'm havin difficulties in making a laser. Hit detection with raycasting 2d is not a problem, but i'm struggling with the cosmetic part of it.
I am using a draw line custom action from the ecosystem, and all i need for it is to stop when it collides with the enemy. Any ideas on how to accomplish this?