Best viewed in Firefox

Awesty Productions

Nintendo Wii new update

May 14th, 2007 by awesty

I haven’t posted much gaming news lately so I thought I would post a short (very short) update on the Nintendo Wii.

The nintendo wii’s globals sales has almost reach 7 million as you can see at VGChartz. The Nintendo wii is predicted to surpass the 360 sales by late 2007.

Read the rest of this entry »

Efficient Collision Detection with Dynamically Created MC’s

May 11th, 2007 by awesty

In this tutorial we will check for collisions between MC’s (Movie Clips) that are created through actionscript. The way we will be doing it won’t lag very much compared to a lot of the other ways you can do this and I will explain why later. I am using Adobe Flash CS3 but Macromedia Flash 8 and Flash MX 2004 will work as well. If you are using Flash CS3 make sure you select a AS 2.0 file.

Click here to see an example of what we will be making.

Open a new flash document and make a bullet or something, make this a MC. This is the MC that is going to be attached to the stage through action script. Make another MC which can be a wall or something you want the bullets to hit. (Make the bullet facing upwards and make the wall horizontal).

Making the Movie Clips

Since we will be attaching the bullets through actionscript delete the one you just made of the stage. Put the wall up close to the top of the stage since we will be putting the bullets down the bottom. Open the library (Ctrl+L or Windows>Library) and right click on the bullet MC. Select ‘Linkage…’. A new window should appear.

Linking the MC1
Read the rest of this entry »

Turtle Slayer

May 8th, 2007 by awesty

This is kind of a test game that I made for a future game I might make. The preloader is a bit buggy so it might not show up until it is nearly finished loading.

You can play it here!

Other games

Calculating much Ammo is left on the Clip and how many Clips are left

May 6th, 2007 by awesty

In this tutorial you will learn how to calculate how much ammo on your clip you have left and how many clips you have left. Alot of the time when you would do this you would have a separate variable for the clips and the ammo. But for this tutorial all we need is one for the ammo. I am using flash CS3 but Flash 8 and Flash MX 2004 will work as well. If you are using Flash CS3 make sure you select an AS 2.0 document.

Click here to see an example of what we will be making.

Make a dynamic text box and a button on the stage. Give the button an instance name of ’shoot’ and the dynamic text box a variable name of ‘display’. The text box will display the ammo and clips and the button will subtract the ammo.

Select one of the frame and open the actions panel. Enter this code.

Read the rest of this entry »

Useful Class for AS 3.0

April 30th, 2007 by awesty

Here is an awesome class someone at Kirupa has written that allows you to use Key.isDown in AS 3, since in AS 3 you can only check what the keys code.

http://www.kirupa.com/forum/sh…8269

Example of use:

import com.classes.Key;
Key.initialize(stage);
function test(event:Event){
if (Key.isDown(Keyboard.SPACE)) {
    trace("Ch-Ch-Check-Ch-Check-Ch-Check it out");
}
}
stage.addEventListener(Event.ENTER_FRAME,test);

It’s not what you say, It’s how you say it

April 29th, 2007 by awesty

You may or may not know this, but Actionscript reads your code from top to bottom. You might not this this really matters at all, but it does. Today I was working on a platforming engine and alot of the collision detecting was messing up. I just rearranged some of the code and it ran just how I wanted.
I am finding a lot lately that when I am actionscripting if I change parts of my code around that my code will run a lot more smoother, or sometimes my code doesn’t work do what it is supposed to until i rearrange it. I thought it would be worth writing about this since there will be a lot of people that don’t realize this.

Read the rest of this entry »

Attaching blood through Actionscript

April 28th, 2007 by awesty

In this tutorial you will learn how to make a blood animation appear and play when you click. You can change the code a bit so the blood will appear when an enemy get hits or something. I am using Flash CS3, but Flash 8 and Flash MX 2004 will work as well.
NOTE: If you are using Flash CS3, make sure you choose a AS 2.0 file.

Click here to see an example of what we will be making. (Click the screen)

You will need to make your blood animation. The easiest way to do this would be to hit Ctrl+F8 to make an empty MC (Movie Clip) and do the animation in there. This is what mine looks like:


Read the rest of this entry »

Playing sounds with Actionscript

April 24th, 2007 by awesty

In this tutorial you will learn how to play a sound from the library through actionscript and makes its volume and pan (which speaker it comes out) change. I will be using Flash 8, but Flash MX 2004 will work fine as well.

You can see an example of what we will be making HERE.

First of all you need to choose the sound you will be using. It could be a song or just a short loop. It doesn’t matter. If you click the link up you would know that mine is just a clapping noise. When you have done that click on File > Import… > Import to library…

importing the file

Now if you don’t have the library open, open it by clicking Windows > Library or Ctrl+L. You should see the sound you just imported. Right click it and click on ‘Linkage…’.

Opening the linkage window

The linkage window should now be open. Click the box that says ‘Export for actionscript’ and enter ‘mySound’ in the identifier box and click ‘OK’. Now we can refer to our sound through actionscript.

Read the rest of this entry »

Rechargeable Wiimote Grip

April 23rd, 2007 by awesty

Sick of your wiimotes batteries going flat while you are playing? I know I am. I am in the zone, about to beat the temple boss in Zelda and BAM! The game stops and I have to search my house for some more batteries. Well now you have to worry no more. Fire bird have developed a grip for your controller that acts as a charging dock and a frame accessory, making it more like the traditional gaming controls.

This will definitely come in handy when you are required to hold the control sideways for racing games. Unfortunately SuccessHK has run out of this nifty little product, but you could probably pick some up on eBay.

Read the rest of this entry »

Smiley with actionscript.

April 21st, 2007 by awesty

This took alot longer for me to do than I thought it would. Just open up flash, click the link below and paste all the code onto the frame. (You will need Flash 8 or MX 2004

LINK

If you test your movie (Ctrl+Enter) You should see a smiley face :D

« Previous Entries Next Entries »