How do I create laser? (WITHOUT PEN)

id: 751365

category: Help with Scripts

posts: 4

Platinum_02 Platinum_02 loading
Hello, I'm making a Shmup arcade game and one of the weapons that the player or enemy can pick up or use is a laser. Why don't I want to use a pen? If you ask, I had trouble getting players to detect the lasers even using if touching colors. Sometimes players die themselves when they touch something other than the laser. Do you have any ideas?
Platinum_02 Platinum_02 loading
If anyone wants to know what the project is like, here it is : https://scratch.mit.edu/projects/992402813/
lgrov44 lgrov44 loading
How's this?
if <(Picked Up) = [True]> then
forever
go to [Sprite to spawn at. v]
show
point in direction (Direction v)
end
end
(The sprite should be a start line from the center outwards with a length of at least 600, assuming the starting point can be anywhere on the stage and the direction can be anything, length may work if shorter if assumptions are wrong.)
Platinum_02 Platinum_02 loading
I guess the simplest solution is the best