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.

2. Convert the jet object to 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;
}
}


4. Give the backgorund picture.


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.

Click the movie below and press the arrow key on your keyboard
Download source files here :
Related Posts :





































change this:
if(Key.isDown(Key.UP)){
this._y += speed;
}
for this:
if(Key.isDown(Key.UP)){
this._y -= speed;
}
Hi, I did everything the tut said and my plane wont move. Any ideas?
grate tut if u dont mind me asking are u going to do a tut to make walls?

admin Reply:
August 18th, 2008 at 10:08 pm
Thank’s, Man! I hope you enjoy that
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:
August 18th, 2008 at 10:11 pm
60 fps ???
So faster and fun i think, hah!
[...] 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. [...]
if you dont mind me asking, whats the program youre using?
Flashfanz Reply:
August 25th, 2008 at 12:38 am
I am using macromedia flash 8 pro, man!
Thanks to ask me
[...] Drive your jet, Man! 2. Making jet movement so [...]
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:
September 7th, 2008 at 6:37 am
Try to see Make your jet can shoot, Man!, thanks to watch this tutorial, glad to know you! see you next time
IM TEN AND I MADE IT!!!!!!
Flashfanz Reply:
September 14th, 2008 at 10:52 pm
congratulation man, I am glad to hear that. keep and grow up to be a games developer… (he he he)
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:
September 23rd, 2008 at 2:55 am
Thanks for watching, your request maybe come true in the next tutorial. So, don’t miss that
[...] 1. Drive your jet, Man! [...]
i copied all the coding but it dosent move it comes up with some syntax error….:(
Flashfanz Reply:
October 7th, 2008 at 11:11 pm
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:
October 7th, 2008 at 11:37 pm
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:
October 12th, 2008 at 10:41 pm
I want to know what the comment in the syntax error window?
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.