Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Laser Hitting Solid Objects & Walls

As the title suggests, this is a laser weapon script that shoots a laser beam. The beam stops when it hits solid objects. Written in AS2 to be used in Flash shooter games.

Download Fla Sample

Download Fla Sample

If you’re having trouble understanding how this script works, please review previously posted examples that were incorporated in to this script: Shooting Laser Weapon & Apply Filters Dynamically.

ActionScript 3 version of this script is available here:

Weapon – Shooting Laser

This script shows you how to shoot a laser weapon from the player movieclip towards the mouse x & y position.

Game Engine – Shooting Laser Weapon

Download Fla Sample

Download Fla Sample

Customizable Game Weapon Settings:

  • reload speed
  • laser offset
  • laser width
  • laser color
  • laser alpha

Read the rest of this entry »