A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Char Animation...

  1. #1
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Hi all,
    here is a small and dirty char animation:
    http://savco.virtualave.net/banner.htm
    so what you think.
    Mad_sci


  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Hehehe Mad-Sci you rock, good work!
    Meow!

  3. #3
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Hey FlashCat how are you doing ?
    It was not very easy even though it looks simple. Targeting MC timeline with Key_events was a bit pain. he he he.
    Now do you have any idea how to detect how long you are pressing the key down. Im planning to use GetTimer thingie.
    Mad_sci

    PS BTW if someone is interested to get the .fla and learn how not to programm. Pls let me know here.

    [Edited by Mad-Sci on 10-16-2000 at 10:50 AM]

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Hi Mad-Sci, I am doing ok considering I spent the howl weekend moving boxes and not working on my flash game, gerrr! How are you doing?


    On Key Down
    set Down = Get Timer

    On Key Up
    set Up = Get Timer

    time elapsed? = Up – Down


    You could use similar methods in a frame loop to determine the duration a key is depressed!
    Meow!

  5. #5
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Yea FlasCat Ill do that. BTW I had a hard time detecting the key_up events how do you do this ?
    I used

    if ( key_isDown ( key.RIGHT )) thingie.
    Mad_sci

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Yep I can help you…. Try this:

    Code:
    onClipEvent (keyDown) {
        KeyDown = Key.getCode();
        trace ("KeyDown:" add KeyDown);
        updateAfterEvent();
    }
    onClipEvent (keyUp) {
        KeyUp = Key.getCode();
        trace ("KeyUp:" add KeyUp);
        updateAfterEvent();
    }
    I hope that works, I will leave for an advanced AS class soon, so I wont be around until Wednesday morning, sorry I cant help any one till then, but I will come back knowing more!

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Ooo. Mad-Sci, I just noticed something. If you look closely at the right side of the movie occasionally a tile is rendered on screen? It looks like your having similar problems to me! LOL I hope you can fix it… it will look so much better!

    Good luck, Meow!

  8. #8
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Hey FlashCat I saw the litle clipping from the right side. Ill fix it soon.
    Ok here is the question;
    eventhough the animation looks right the script become a bit complex and I would love to do something much simpler. up to now i had all the animations in the Hero's timeline which i target with gotoAndStop statements. Do you think it will be a cool idea to use nested MC for each animation and use the visibility option for different events. It will be much simpler i think.
    Mad_Sci

  9. #9
    Junior Member
    Join Date
    Aug 2000
    Posts
    27

    Hey!

    Hey Mad looks great! Any way I could get the .fla for it? I would love to see how you did it.

  10. #10
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    brogan, it will be my pleasure.
    http://savco.virtualave.net/walk.zip
    rip it appart and tell me what you think cuz Im a bit disapointed the way I build it. too many variables and scripting. on the main stage there is a count up field which acutally detects for how long the key is held down. You can use this if you want your man to switch from walk-to running when you keep the key down. Any improvements more than welcome. The char animation is done frame by frame usign the Swifty font for windows. Im totaly ungifted when the question is drawing. The strategie is to target specific frames using frame counts rather then gotoandPlay.
    The man is actualy stays on place but the ground moves. The wallpaper behind uses the same script as the bricks but with a less step.
    Enjoy
    Mad_sci
    PS any question post here.
    Ms

  11. #11
    Junior Member
    Join Date
    Jul 2000
    Posts
    20
    haha, that is great.
    made me want to jump on some alligator heads!

    goonie

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