Free ActionScript

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

Animated Explosion Effect

Animated Explosion Effect

Download Fla Sample

Download Fla Sample

Update
AS3 version of this effect is available here:
http://www.freeactionscript.com/2011/08/dynamic-explosion-generator/

Simple Enemy Random Movement

Here is a simple AS2 enemy creation/ai script that allows you to create enemies that move about randomly inside a container movieclip. You can set custom movement boundaries/borders. When an enemy hits the border, it will “bounce off” and move in the opposite direction.

Random Movement Example

Download Fla Sample

Download Fla Sample

Drag Drop & Snap Inventory System v2

Drag, drop and snap inventory system for Flash games written in ActionScript 2.0.

I updated the previous version of my drag drop and snap inventory system to make it easier to understand. Added the ability to create new dragable items as objects. Also cleaned up & commented all the code.

Features

  • Slots Array
  • Create new Draggable Items
  • Drag & Drop Items
  • Dropped Items snap to Slot
  • Each Item stores Slot info
  • Each Slot stores Item info
  • Return to previous position if current slot is full

Drag, Drop & Snap Inventory System Sample v2

Download Fla Sample

Download Fla Sample

Update:
AS3 version of my inventory system is available here:

http://www.freeactionscript.com/2010/11/drag-drop-and-snap-inventory-system/

Weapons – Shooting Projectile Bullets v1.1

This script shows you how to shoot projectile bullets from the player movieclip towards the mouse x & y position.

Easy to use game weapon engine. Flash ActionScript 2.0.

Shooting Projectile Bullets Game Example

Download Fla Sample

Download Fla Sample

Customizable Game Weapon Settings

  • Bullet Offset – This set the accuracy of the bullet
  • Bullet Life Timer -¬† This sets the life span of the bullet based on frame rate
  • Bullet Speed – This sets the speed of the bullet
  • Reload Speed – This sets the reload speed of the weapon

Big Fix – 12.15.08
Fixed a bug where bullet offset was effecting the bullet starting position.

Update – 6.16.09
A new and improved version of this script is available here.
Read the rest of this entry »