Wednesday, March 30, 2011

flash mx codes

This is the First Person Shooter tutorial codes. Part 1:
onClipEvent (enterFrame)
{ Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
}
onClipEvent (mouseDown)
{ _root.ammo.nextFrame();
}
onClipEvent (enterFrame)
{if(Key.isDown(90)){this.gotoAndPlay(2);
}
}
onClipEvent (enterFrame)
{if(Key.isDown(80)){this.gotoAndPlay(6);
}
}


Part 3:
_root.gotoAndPlay ("gameover") ;
NOTE: the game over actionscript is only placed on your last keyframe for ammunation and health. and you can rename the gameover to the name you placed on the key label on the game over scene.
stop();
stop action is placed on other frames on your health except for the last one also remember to put the stop action on ur main frame of the game (where your guns etc are on) also place stop action on the game over frame! Part 4:

onClipEvent (enterFrame) {

onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
_root.enemy.gotoAndPlay("
death");
}
};
}
place that on "enemy" movieclip


_root.health.nextFrame();


place that where the enemy is attacking (BEFORE HE DIES)


_root.enemy.gotoAndPlay ("attack") ;


place that on frame names, on top of the standing stance one frame after the attacking animation.


stop();


end of the death animation


Part 5:


go in the crosshair movieclip
the select the gun movieclip
and paste this actionscript on it


onClipEvent (mouseDown)

{ this.gotoAndPlay(2);
}

go inside the "gun" movieclip and place


stop();


on frame 1 and 6 frames 2,3,4,5 are animation of the gun shooting..
Connect via Meebo
 
 

Wednesday, March 23, 2011

drop shadow / reflection

1. put all your layers in to 1 folder and call it ipod
2. make 2  copies of the folder
3. name 1 shadow and the other reflection
4. marge layers in the duplicate folders
5. reflection - >transform it and flip vertically
6. put mask on your reflection and use gradiant or brush tool to make it fade off
7. take your shadow layer and ctrl + click on the icon of your layer to get selection
8. then fill with black
9. then ctrl + t to transform and make it smaller
10. use gassuium blur to blur it and change oppasitty

Tuesday, March 8, 2011

download brushes

from brusheezy.com

layer composition

7 tools of composition
1. higerarchy means organizing things from most important to least important
2.focal point / focus point  means the strongest, most compelling element in a desine
3.eye path : guiding the viewers eye along tyhe path.
4.proportion: the diffrence in size
5.visual weight: the lightness or darkness of a colour
6.type as a visual element:
7.alignment (grid): align things up

desine with intention means dont place things on the page without thought.
use these tools to guide your viewers eye.