A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: 2 moving questions

  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    98

    2 moving questions

    1. How can I make a smooth moving like in this game-
    http://www.miniclip.com/crypt/cryptraider.htm
    and not a "bad" moving like in here-
    http://www.kirupa.com/developer/mx/movement_keys.htm
    ?

    2. How can I make a moving animation? I mean when I'll press left I will see the char legs moving

    thanks everybody

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    98
    some1?
    please... anyone...?

  3. #3
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    You would make a keyframe that has the characters walking animation, then put a
    code:

    gotoAndPlay("walkingAnim");


    right after the keyPress in your code.
    Flash is amor; nada more.

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    98
    thanks but I have 2 question-
    what is keyPress?
    and I have more then 0ne keyframe of animation, is it ok?

  5. #5
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    From the tutorial that you posted...

    code:

    on (keyPress "<Left>") {
    currentX = this._x;
    this._x = currentX - 2;
    _root.bug._rotation = 270;
    this.gotoAndPlay("walkLeft");
    }



    That's fine that you have more than one keyframe, since it needs to walk in more than one direction.
    Post your fla if you have anymore questions.
    Flash is amor; nada more.

  6. #6
    Member
    Join Date
    Sep 2004
    Posts
    98
    thanks but I still have a lot of problams...
    here is the fla-
    http://members.lycos.co.uk/xtks/Untitled-2.fla

    can u try to find out what the probla, is and help me?
    thank u very much.

  7. #7
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    save your fla again in MX format and repost.
    Flash is amor; nada more.

  8. #8

  9. #9
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    You needed to label the frames of your animation, and you also needed to put the animations within the actual man's mc to make it more versatile for a game. (if thats what youre making)
    Flash is amor; nada more.

  10. #10
    Member
    Join Date
    Sep 2004
    Posts
    98
    Thanks know I know it.

    Thank u

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center