Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Flash Tutorial(HD): How to make a object move with arrow keys

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,065
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 12, 2010

This is a tutorial on how to make a object move using the arrow keys.
Code:
onClipEvent(enterFrame){
if(Key.isDown(Key.UP)){
_y-= 10;
}

if(Key.isDown(Key.LEFT)){
_x+= 10;
}

if(Key.isDown(Key.RIGHT)){
_x-= 10;
}

if(Key.isDown(Key.DOWN)){
_y+= 10;
}

Or download the txt of it here
http://www.filefront.com/16928943/flash-move-script.txt/

Category:

Film & Animation

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • Thank you Very Much! I like it how you explain the X and Y thingy. Like other people they dont explain why you have to put that code down and most people just tell you to copy and past the code under the description. Good for beginers (Such as myself).

    and by the way nice wallpaper :P

see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Oh no! You created the Chosen One! Beware!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more