DRIVE YOUR JET, MAN!

This tutorial learn you how to move a jet to different direction with arrow key on the keyboard. I hope you enjoy and satisfied with my tutorial. Next time i will write more tutorials about make a game with flash program.

1. First time, draw your jet with a crazy little thing if you have.

Drawing your jet

2. Convert the jet object to movieclip.

Convert to movieclip

Give the name of movieclip

3. Place this code on the Movieclip jet :

onClipEvent(load){

speed = 10;

}

onClipEvent(enterFrame){

if(Key.isDown(Key.RIGHT)){

this._x += speed;

}else if(Key.isDown(Key.LEFT)){

this._x -= speed;

}

if(Key.isDown(Key.UP)){

this._y -= speed;

}

if(Key.isDown(Key.DOWN)){

this._y += speed;

}

}

put the code

Box of the code

4. Give the backgorund picture.

Make a new layer

Drawing background

5. Place your jet in the middle of the page and then press CTRL + ENTER. Try to press arrow key and wacth, your drive a jet.

Set the position


Click the movie below and press the arrow key on your keyboard

Download source files here :

drive your jet, man!.rar

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blogmarks
  • BlogMemes
  • Blogosphere News
  • E-mail this story to a friend!
  • Gwar
  • Live
  • MyShare
  • N4G
  • Netvouz
  • NewsVine
  • PlugIM
  • Technorati
  • YahooMyWeb
  • blinkbits
  • BlinkList
  • co.mments
  • connotea
  • De.lirio.us
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • RawSugar
  • Reddit
  • description
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
Related Posts :

Red Alert 3 System Requirements
Making your jet movement so real
Limit your jet game movement
Uberclok Ion
Make your jet can shoot, Man!

22 Responses to “DRIVE YOUR JET, MAN!”

  1. change this:
    if(Key.isDown(Key.UP)){

    this._y += speed;

    }
    for this:
    if(Key.isDown(Key.UP)){

    this._y -= speed;

    }

    Thank’s man! I missed that…
    Glad to know you

  2. Hi, I did everything the tut said and my plane wont move. Any ideas?

    Did you forget to type “;” in every ending code?
    please watch that, little mistake can kill you crazy !

    Call me anytime, oke! thanks!

  3. grate tut if u dont mind me asking are u going to do a tut to make walls?
    :)

    admin Reply:

    Thank’s, Man! I hope you enjoy that

  4. Worked great! It’s fun to play when you take to your highest resolution and play in fun screen. Looks so fresh!

    I recommend using 60 fps.

    admin Reply:

    60 fps ???
    So faster and fun i think, hah!

  5. [...] In the last tutorial, I had explained to you how to movement a Movieclip with arrow key on the keyboard to any direction. For anyone who not yet read that, you can read that here. [...]

  6. if you dont mind me asking, whats the program youre using?

    Flashfanz Reply:

    I am using macromedia flash 8 pro, man!
    Thanks to ask me

  7. [...] Drive your jet, Man! 2. Making jet movement so [...]

  8. Hi, I did everythng and its working fine.

    1. After moveing from stage its not showing my jet.
    2. According our jet move background also move r what?

    plz

    Flashfanz Reply:

    Try to see Make your jet can shoot, Man!, thanks to watch this tutorial, glad to know you! see you next time

  9. IM TEN AND I MADE IT!!!!!!

    Flashfanz Reply:

    congratulation man, I am glad to hear that. keep and grow up to be a games developer… (he he he)

  10. I was wondering if you could teach us how to make the plane say things by pressing A,S,D,F (different sayings each time) of course i am not using a jet, i am trying to make something for a teacher and I think thatd be cool for it to say things acoording to a key that is pressed I think I could do some of the coding myself but i dont know how the text would follow the icon.

    Sorry to push you so far but I was also wondering what the code would be for it to only move left and right?and put walls up on the left and right sides so my icon cannot move offscreen and i can never find it thanks so much!

    Flashfanz Reply:

    Thanks for watching, your request maybe come true in the next tutorial. So, don’t miss that

  11. [...] 1. Drive your jet, Man! [...]

  12. i copied all the coding but it dosent move it comes up with some syntax error….:(

    Flashfanz Reply:

    What the series flash program you are using ?
    I recomended you to using flash 8 profesional, Man!
    please try and ask me anytime. Thanks for asking!

    Akira Reply:

    I am using ADOBE Flash CS3 Professional
    yea well i followed the tutorial and i made my plane and copyed and pasted the Action Script into the “Actions” of the Movie Clip….

    Flashfanz Reply:

    I want to know what the comment in the syntax error window?

  13. hey i do not have adobe flash. i use Liveswif 2.2, im sure you have heard of it. is it possible to make these same files on that program as well? if so please help. i am pretty good with liveswif but i cannot figure out how to really use the actionscript. everything is manual. there is no converting object to movies unless you do it manual. if you have any comment on how to do this it would be greatly appreciated.

Leave a Reply