Make Marbel Texture..
Make variable colored grid..
Neon Text..
The micro bevel..
Rusted Type..
3D Text/Logo..
Techno-wave Effect..
Trendy Avatar..
Simple background..
Digital Effect..
Polar Coordinates..
Water drops..
LCD Screens..
Steel Type..
Pixelated Text..
Smooth Edges..
Vectorizing Photos..
Luminous Essence..
Transparency..
Digital Smoke..
Game cube logo..
Gradient Grids..
Sparkles..
Driping Slime..
Borders..
Cartoon Clouds..
Organic Tech..
Aqua Balls..
Kerning and Tracking text..
Getting rid of overlap..
Weaving a ribbon through text..
Blend layers w/ opacity mask..
Brilliant Color..
Create 3D Cylinder..
Creating Artistic Brushes..
Fine Lines Design..
Transition b/w two objects..
Distortion Effect..
Soft Proof your colors..
Knotworking..
Creating views..
Transforming shapes..
Creating Image map..
Optimizing web graphics..
Using Slice tool..
Creating web button..
Animation of scaling..
Ripple Animation..
Colors changes to animation..
Neon light animation..
Creating a Navigation bar..
Animated Imagemap Button..
Preloader with FlashMX..
Sound Control..
Steel Flash..
Using masks..
Loading an external movie..
Flash light effect..
Flash game techniques (P-1)..
Flash game techniques (P-2)..
Flash game techniques (P-3)..
Flash game techniques (P-4)..
Flash game techniques (P-5)..
Dropdown menu for FlashMX..
Zoom blur effect..
Dessolving words ..
Spotlight masking..
Passing variable to Flash..
Clear Text..
Create Time in Flash..
Change colors of movieclip..
Creating sites using CSS ..
Dreamweaver 4 Flash buttons..
Defining a site..
Dreamweaver Form tips..
Dreamweaver interface..
Creating nested tables..
Rollover form buttons..
Graphics Editing w/ DW & FW..
Inserting FW HTML into DW..
Working with templates..
Quick shapes in freehand..
Making a 3D pie-chart..
Exporting GIFs from Freehand..
Creating 3D Soccer Ball..
Creating Perspective shadows..
Chrome effect in Freehand..
Creating Hollow Envelopes..
Building Buttons..
Drawing a heart symbol..
3D Ball ..
Bouncing ball..
Automating Fireworks..
Text writing animation..
Fireworks 4 Popup menus..
Creating Gel Text..
Outline tool overview..
Cracked text..
Page curl ..
Contoured Text ..
Drop Shadows ..
Creating complex shapes..
Creating volumetric clouds..
Water/Fire/Smoke Effect ..
The Power of Radial array..
Modelling an Eye..
Welding vertices..
Animating a ball..
Realistic Texturing..
Polygon basics..
Lathe Tutorial ..
Emit geometry from a point emitter..
Creating a missile trail..
Animating a flying baloon..
Introduction to Expressions..
Making MEL Procedures..
Introduction to MEL Scripting..
Modeling a mechanical hand..
Build a spiral staircase..
Building leg skeletons..
Modeling a head..
Texturing the head..

How to make water ripple..
Create Ghost shader..
Using two bone IK Solver..
Using multi-texturing..

Flash Game - Part 2

Ok, this is the next installment in the first person shooter tutorial. In the last one, you should have made a hand holding a gun, with the cross hair (or sights) moving around with the mouse. Not much fun shooting at a blank screen is it? Anyway now we will be working towards preparing the game for some enemies to shoot.

We will prepare the background and hiding places for the enemies in this tutorial.

To begin, open up the previous fla and add these layers to the movie (keep the order):

Now we could just put everything in one layer, but using different layers for different object keeps things neater and makes troubleshooting and editing easier. Besides, the amount of layers you have does not affect the final size of the movie.

 

The layers "garbage cans" and "wall" are coverings I've used, that the enemies hide behind. You can use your own.

In the wall layer, click on the first frame and draw a wall or a fence, again, it's up to you:

In the ground layer, click in the first frame and draw some ground, or grass. I used a gravel tile image and just duplicated it, then grouped the duplicates together. Tip: if you select an image, press CTRL+K (this brings up the Align panel) then click on:

1: Align centre stage horizontally then
2: Match stage width

This aligns the image to the centre, then makes it the same width as the stage so you don't have to worry about matching the size. The only thing you need to adjust is the height of the image. Be careful though, as if it's a small image, it may become distorted. You should end up with something like this:

In the garbage cans layer, click in the first frame and draw two garbage cans - or whatever covering you've chosen. Place into position. Once they're in position, click on one of them and press F-8 - Convert to Symbol and select Button. Give it the name "garbageCan1":

Do the same for the other one, but give it the name "garbageCan2".

These buttons won't be used in the movie as buttons, it's to stop anything, namely the enemies being shot while they are hiding behind the cans. If you click on the garbage can, around the same area that the enemy is hiding, he would still react as if he has been shot, even though you haven't actually clicked on him, and even though he is not visible. Now we could just simply use, when the character is hidden, a variable like isUp = false to tell us he is not up and can't be shot, or:

this.enabled = false;

which would prevent him from being shot before we want him to be, and when he is fully up and out of the hiding place use:

this.enabled = true;

which would enable him to be shot, but it's more realistic if he can be shot even if a bit of him is visible, whether he is fully up or not. By placing an inactive button in front of him, it forms a layer or barrier, that if clicked on the area the enemy is hiding, the shot won't register with the enemy. The shot will register only if you actually click on the enemy. If this sounds confusing, hopefully you'll understand as you put it into practice.

Now you should have the wall, the ground and the garbage cans all done. I used pre-made graphics for the wall, ground and garbage cans, just to make things easier writing the tutorial. You may want to spend some time, drawing a background you're happy with.

In the next part, we hope to add some enemies into the picture so you should have something to shoot at.

Partners

Flash Templates
Free Web Templates
FREE professional web templates
Website templates
Free Web Templates
Graphic Design
Tutorial Guide
Flash Templates

Flash Templates and Web Templates

 


Advertise | Submissions | Privacy Policy
All the contents and articles within this website are property of their respective authors and are submitted to us by them, we do not held any liability for the material including text and graphics submitted by them.
© Copyright Vecpix.com 2006-07. All rights reserved.