if you want to make an action game character in a game, you can use actionscript on Macromedia Flash aplication to the key action from your keyboard, with a build action to the action of the frame in flash applications. for more information following tutorial will show you easily the workings of a game character.



picture above is a character from the main frame we've built with the details of the characters consist of several characters in the movie characters scane as shown below

for pictures with information number one is the object of a single symbol. and for the information number three for the script actionscript - stop ();
As for number two is a movie that consists of several objects in several frames. as shown in the picture below




picture above is a picture object from frame to frame in the movie, In the main frame have the following script
  1. Human1._xscale=100;
  2. HumanPosisi=function(){
  3.          if (Human1._x==308){
  4.              Human1._x=34;
  5.            }
  6.        if (Human1._x==33){
  7.            Human1._x=307;
  8.           }
  9. }
  10. Human1.onEnterFrame=function(){
  11. HumanPosisi();
  12.     if (Key.isDown(Key.RIGHT)) {
  13.          this._x+=6;
  14.         Human1.gotoAndPlay(2);
  15.         Human1._xscale=100;
  16.     }
  17.   if (Key.isDown(Key.LEFT)) {
  18.       this._x-=6;
  19.       Human1.gotoAndPlay(2);
  20.       Human1._xscale=-100;
  21.      }
  22. }

You can download the examples from the example Build a Basic Character of this game make aplication Macromedia Flash, for download click here. thanks

No comments:

Post a Comment