AS3 : Explosion Burst Class

Developing games like Shooter in As3 can be boring without good explosion effects. Over the weekends, I ported a simple class ( from As2 )which does some randomized explosion movie-clips.

This is to be used when there’s an explosion in the game. The class allows you to create explosion effect based on number of particles, size of distance and alpha. All you need is to instantiate it and pass in the variables needed. See sample below.

Read the rest of this entry »

AS3 : Flash-Console

console_controls01

Every wonder that, there’s something to display your run-time variables smoothly without using the laggy trace. Not to say trace command is useless, but at times is much less cpu intensive to debug values especially on enterFrame run time to an on screen textbox instead of using trace.

But, lately I stumbled upon a good console interface like debugger called Flash Console in a form of as3 class package!

Read the rest of this entry »

AS3 : FPS and Memory Counter Package

ActionscriptIcon_400 One of my favorite class I used to include when developing games for flash is my FPS and Memory Counter Package. I use this to check my fps and memory consumption for my games.

This helps to identify which of my methods I wrote is taxing the CPU or not. Simply import package to your main.as and add it into the stage

 

Read the rest of this entry »

AS3 : Gaia FrameWork Development Guide

Today, I’m gonna talk more in general about my experience in Gaia Framework. Here are some of the details I’ll cover in this post.

  • The Index – using the index effectively.
  • Assets Management – some example, on how to hook up an xml and graphical asset.

Gaiapanel

Read the rest of this entry »

ActionScript 3.0 : Shape Based HitTest / Collision Detection

hittest

During one of my flash game development project, I soon found out that I need to use some kind shape based hit test. Yes, basically – in older days of hittest, this can be accomplish with either an insane amount of mini invisible movieclip stacked around the shape of the object, or they do it using some mathematically formula. This is because, the function hitTest doesn’t work exactly like the shape of the movieclip but, takes the entire movieclip as whole.

Well, this tutorial isn’t about the two method above but, a way simpler method to do collision detection based on shape.

Take a good look at the sample flash below in action.

Read the rest of this entry »

Page 1 of 512345