Here are the two traps I made for my game, the one on the left is a mine that shots in a fan like pattern, I did this by using this tutorial as a guide: 2D Platformer trap tutorial. I then used my knowledge from the tutorial and my own knowledge to make a giant laser attack. It didn’t go quite as plan, because I wanted two collisions, with the first that triggered the event and the other collision I wanted the laser to come out from, but it used the first collision for both. I even specified the second location for the transform point, at least I think I did, can’t remember. Anyway it didn’t matter that much, so I fixed an issue I was having; wasn’t shooting in right direction and called it a day.
Note: Sorry for the delay, I was very busy with other work.