actionscript game effect

Realistic Dynamic Bitmap Explosion Effect

Saturday, February 21st, 2009 | Effects Dynamic, Game Examples AS2 | 1 Comment

Preview

Download Fla Sample

Download Fla Sample

If you’re having trouble understanding how everything works, check out these previous examples that were incorporated in to this one:

Tags: , , , , , , , , ,

Simple Flashlight Effect

Friday, January 16th, 2009 | Effects Animated, Game Examples AS2 | 1 Comment

Here’s a very simple Flash flashlight effect that uses almost no ActionScript. The only AS used is for rotation and key detection.

The effect is archived with a mask and a filter. The filter is a simple gradient fill, same color as the “dark”. One side the alpha is 100, the other size alpha 0. Both the mask and the filter are the same shape and size (I’m using the same movieclip actually). To make everything work, you have to rotate and move the filter and mask at the same time (along with the player).

Preview

Download Fla Sample

Download Fla Sample

Also note the center registration point for the filter, mask and player. Make sure everything is aligned or the effect will break.

Tags: , , , , , , , ,

Game Weapons - Lightning, Laser, Beam, Pulse Gun Effects

Wednesday, December 3rd, 2008 | Game Examples AS2, Game Weapons | 4 Comments

This advanced game weapon script shows you how to create a lightning, laser, beam, pulse and other effects using Flash ActionScript 2. It is highly customizable and easy to modify to create your own desired effect.

Lightning Gun Effect Preview

Download Fla Sample

Download Fla Sample

Customizable Settings

  • reloadSpeed - how long it takes the gun to reload in milliseconds
  • clearSpeed - how long it takes to clear the graphics on screen in milliseconds
  • lightningOffset - how wide the lignting bolt is in pixels
  • lightningFrequency - how long each jump is in pixels
  • lightningWidth - set the width of each lightning bolt in pixels
  • lightningColor - set lightning color
  • lightningAlpha - set lightning transparency
  • lightningBranches - how many lightning bolt branches will be drawn per click
  • sparkNumber - set number of sparks
  • sparkDistance - set spark spread distance
  • sparkSize - set spark scale in percent

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, Play Random Sound, Apply Filters using ActionScript & Sparkle Effect.

Check out other free Flash game weapon effects from FreeActionScript.com:

Tags: , , , , , , , , , , , , , , , , , , , ,

Sparkle Effect

Monday, December 1st, 2008 | Effects Animated, Game Examples AS2 | 3 Comments

A simple animated sparkle effect. You can easily change settings to customize the look.

  • sparkNumber - number of sparkles per click
  • sparkDistance - offset distance from click
  • sparkSize - particle scale
  • sparkAlpha - particle alpha

Sparkle Effect

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , , , , ,

Realistic Smoke Effect - Particle Trailer - v2

Monday, October 20th, 2008 | Effects Dynamic, Game Examples AS2 | 2 Comments

Updated my previous ActionScript 2 smoke effect trailer to make it more realistic.  You can attach this smoke straight to enemies or other objects to simulate damage in flash games.

Smoke Trailer Sample v2

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , , , , ,