Okay,
The laser will be used for this Pacman game I'm building. Unlike the regular maze avoid ghosts eat all dots, I made it two-player and I have power-ups, so basically whoever earns the most points at the end of 3 minutes or kills their opponent wins. The power-ups are basically recieved when you eat a power-up dot (when any dot is eaten, it respawns on the field and there's a randomization system that chooses between a small dot or power-ups), and you can use them by pressing a keyboard key. I need the laser to either be a small image to start off with, then to have the image drag in the direction it's going (sorta like how images slur when the game's lagging). The laser has to follow the Pacman's direction, so if I face another direction while I am utilizing the laser the laser has to follow me like so, and also if I move vertically or horizontially. The part of the laser that goes off screen must also be deleted.
The laser will be used for this Pacman game I'm building. Unlike the regular maze avoid ghosts eat all dots, I made it two-player and I have power-ups, so basically whoever earns the most points at the end of 3 minutes or kills their opponent wins. The power-ups are basically recieved when you eat a power-up dot (when any dot is eaten, it respawns on the field and there's a randomization system that chooses between a small dot or power-ups), and you can use them by pressing a keyboard key. I need the laser to either be a small image to start off with, then to have the image drag in the direction it's going (sorta like how images slur when the game's lagging). The laser has to follow the Pacman's direction, so if I face another direction while I am utilizing the laser the laser has to follow me like so, and also if I move vertically or horizontially. The part of the laser that goes off screen must also be deleted.