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

Flash Overhead RPG Tutorial - Part 1 - Animating and moving your character

Loading...

Sign in or sign up now!
5,031
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 17, 2009

SOURCE FILE AND HD VIDEO WILL BE AT...
http://adobeflashtutorials.tk/

In this tutorial, I will teach you how to animate and move your character. I am using flash 8.

--------ACTIONSCRIPT--------
In toon_walking:
++++++++++++++++
onEnterFrame = function(){
if(Key.isDown(Key.DOWN) or Key.isDown(Key.LEFT) or Key.isDown(Key.UP) or Key.isDown(Key.RIGHT)){
nextFrame();
}else{
gotoAndStop(1);
}
}
++++++++++++++++

In toon_walking, the last frame

++++++++++++++++
onEnterFrame = function(){
gotoAndPlay(1);
}
++++++++++++++++

On the main frame

++++++++++++++++
onEnterFrame = function(){
toonspeed = 5
if(Key.isDown(Key.DOWN)){
_root.toon.gotoAndStop(1);
_root.toon._y += toonspeed
}
if(Key.isDown(Key.LEFT)){
_root.toon.gotoAndStop(2);
_root.toon._x -= toonspeed
}
if(Key.isDown(Key.UP)){
_root.toon.gotoAndStop(3);
_root.toon._y -= toonspeed
}
if(Key.isDown(Key.RIGHT)){
_root.toon.gotoAndStop(4);
_root.toon._x += toonspeed
}
}
++++++++++++++++

NOTE: Make sure inside toon_total, each frame has a stop(); action.

Source: [I will be uploading the source onto my website, just give me a few days to figure this out.]

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (AdobeFlashTutorials)

  • When you're making a tutorial, you really have to explain a little better. For example, at the beginning, you convert the toon to a simple, however, a few moments later, you actually enter the edit mode for the toon and convert it to another symbol. This is going to confuse a lot of beginners.

    Anyway, good job nonetheless, and it helped me a bit with AS, so thanks.

  • Sorry if it was quick. This was quite some time ago. Basically I made this entire thing up on the go. You have no idea what 6 months did to me :)

  • Hey, can you make a tutorial showing how to make the same animation but in ActionScript 3?

  • Just press Create New Flash Document>AS2 Document.

  • Very nice, but why so hurry? kinda stress me up. But, respect.

  • Sorry, I may redue all the tutorials soon.

see all

All Comments (33)

Sign In or Sign Up now to post a comment!
  • Quick question: it's understandable that left would be_x -= and right would be _x += but why is up _y -=? wouldn't that mean down on the coordinate plane?

  • WTF,dude the animation part was so confusing,what is the order?

  • why does the warning pop out every time I test it? but it still works. But how can I get rid of the stupid warning?

    **Error** Symbol=toon_walking, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler onEnterFrame = function(){

    Total ActionScript Errors: 1 Reported Errors: 1

  • are you trying to destroy your keyboard?! I hear your keybord instead of your voice.

  • oh wait no wonder im using flash mx

  • i am officially confused

  • how did u switch over to another animation piece?

  • u went to fast and i messed up the entire animation. now i have to start over

  • i really liked it, i used to make these little projects and now that im going back to it this was a good revision for me thanks :)

  • subbed

Loading...

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