Here is a simple way to do it if Im right in thinking what you mean. Im guessing that the laser will travel somewhere like a bullet, and it moves upwards. Heres how to do it: First go to the space craft actor or whatever it is that makes the laser.If you want the laser to be created when you press the left mouse button, then go to mouse button down, and left click. Then add a create actor action. In the create actor action, have the actor "lazer" (or whatever your lazer actor is called) created at 0, 0 relative to the creator. Then, for the lazer, add a draw actor event, script editor and type in:
- Code: Select all
y = y - 5;
That should be all you have to do. If you want the lazer to be destroyed when it hits an enemy, have a collision event, and then put the destroy actor action (event actor).