First of all setup you character and convert to a movie clip then select your character and then press F9 to open the action scripts menu and type in these.
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x--;
}
if (Key.isDown(Key.RIGHT)) {
_x++;
}
if (Key.isDown(Key.UP)) {
_y--;
}
if (Key.isDown(Key.DOWN)) {
_y++;
}
}
Note test your movie.
HOW TO MAKE A CHARACTER MOVE ON KEY PRESS
Subscribe to:
Post Comments (Atom)
Popular Posts
-
-Author: Otobong Click here to view the swf sample This is a very straightforward tutorial. You will be making a twinkling...
-
-BY OTO In this tutorial I will show you how to make some eye catching Iphone like buttons in flash. With this technique you will be able ...
-
In this tutorial we will make an interactive flash menu that you can use on your website, flash games and applications. Step 1 Open a new f...
-
Click here to view the final result. Introduction This could be useful for your flash games, applications etc. Just some view steps ...
-
We are going to make three eye-catching stunning colorful buttons in flash, which you can use for your website, flash games and misc. You ...
-
In this tutorial you will learn how to make a complete character movement which will include rotation and hit test for your flash games char...
-
Within 15minutes or so, depending on your reading speed you will be able to make classic style navigation using Flash Professional. Previ...
-
This will be the most interactive and remarkable lesson on flash menu, that you have ever learnt. We are going to make a flash menu that ...

0 comments:
Post a Comment
Warning! Do not use swear words / slangs when posting.