A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: problem pliis help

  1. #1
    Senior Member Djali's Avatar
    Join Date
    Sep 2004
    Location
    Sweden, stockholm
    Posts
    124

    problem pliis help

    Please help my i want to put my own char. in this game and make him jump and walk when u push the buttons (the animations)
    please help me!
    go inside the hero mc you will see the the three states idle,walk,jump but i cant get him to do the jump anim when he jump
    i tried with the gotoandplay but it still wont work.
    if i was unclear please tell me so i can explain better.
    ThankZ
    fla attached.
    Attached Files Attached Files
    Area restricted-
    Tresspassers will be shot.
    Survivors will be shot again...


    http://www.geocities.com/legg3r

  2. #2
    Senior Member Djali's Avatar
    Join Date
    Sep 2004
    Location
    Sweden, stockholm
    Posts
    124
    And the MX file
    Attached Files Attached Files
    Area restricted-
    Tresspassers will be shot.
    Survivors will be shot again...


    http://www.geocities.com/legg3r

  3. #3
    Senior Member dogtown08's Avatar
    Join Date
    Jul 2004
    Location
    In a later dimension
    Posts
    201
    Couldn't seem to open the mx file, but please, do a search. I am guessing your problem is you have code that looks like
    code:
    if(Key.isDown(Key.RIGHT))
    {
    gotoAndPlay("Walk")
    }



    and then you have an animation that lasts a number of frames. This seems to be everyone's problem.

    If this is what you are doing, EVERY TIME the user presses(or holds down) right, it goes back to the frame "walk". Say the animation starts at frame 1 and ends at frame 10.

    code:
    if(Key.isDown(Key.RIGHT))
    {
    if(this._currentframe==1 || this._currentframe==10)
    {
    gotoAndPlay("Walk")
    }



    I probably missed your problem completely, but whatever. Post a working MX flash and I will help you.

  4. #4
    Senior Member Djali's Avatar
    Join Date
    Sep 2004
    Location
    Sweden, stockholm
    Posts
    124
    Hope this works
    Attached Files Attached Files
    Area restricted-
    Tresspassers will be shot.
    Survivors will be shot again...


    http://www.geocities.com/legg3r

  5. #5
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi....
    Here ya go.....the actions are on the hero movieclip....check inside the clip to see that 'stop' actions have also been added on a new layer....


    P.S.i added a ducking frame for you on keypress down.... but you need to edit the artwork!!!!

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