Some tests with a raycasting laser. Space to fire WASD to move ---What is a Raycast?--- A raycast, more commonly known as "hitscan", is a type of firing method for some of your favorite games. Instead of firing a projectile which travels and hits its target, a raycast weapon instantaneously shoots out a ray which eventually collides with an object. If it's an enemy, it does damage instantly. You may find this kind of hit detection on sniper rifles in games. I decided to do something different with it: lasers! How it works is that using the "run without screen refresh" option on custom blocks, a ray is shot out instantly, and a group of pens "trace" their way across the straight line in an irregular way to make it have a lightning effect. If you want to use this system (It's a complete mess, so I wouldn't recommend it unless you know what you are doing), you need to give credit to me. Thanks for looking at my project! BTW, since you scrolled all the way down here, I'll share with you a secret. Type the Konami Code while the project is running (You may want to turn down your sound).
12/22/2022: Updated the visual effects of the laser. 4/21/2023: Toned down visual effects. 9/28/2024: got bored, added shake effect to target. Credit to The Behemoth for the sound effects.