User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Running Animation Question

  1. #1
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running Animation Question

    Hello all,

    I'm new to mmf2 and I have a (noob) question about the running animation. I have the sprites for the walking and running animation but what is the best way to run the running animation?

    I want to hold shift for my character to run. Once I let go of shift, it goes back to walking animation. This is what I did:

    Repeat while "shift" is pressed - change animation sequence to running.
    X Repeat while "shift" is pressed - restore animation sequence.

    This accomplished the walk to run animation. Two problems though:
    1. When I hold shift, the animation plays without the character is moving.
    2. The second condition blocks out any other key presses. For example. If I wanted another animation to play by pressing another button, it won't work because of the second condition.

    What is the best way to have the character go from walking animation to running animation? How are you guys coding the running animation? I looked around and can't seem to find an answer. A link or your guidance will be much appreciated.

    Thank you for your time.

  2. #2
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    644
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What type of movement are you using? Built in platform movement or the Platform Movement Object? If you're using the PMO, try this

    -Character "Running" is playing (right click and hit "negate, this will put a red X next to the animation)
    -Character "Walking" is playing (negate this too)
    -Object is Moving (this is for the PMO, negate it as well)
    >- Character animation change to "Idle" or stopped or whatever you have named for your standing animation. if this doesn't help, post your file and i'll help you out

  3. #3
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using the 8 directional movement.
    Will that be different from the platform movement?

  4. #4
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    644
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Slightly but i just mention that because that's what i use primarily and its a very popular extension. If you can upload your file i'll take a look at it.

  5. #5
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    919
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Try something like this:

    User isn't pressing the direction arrows -> set variable "running" to 0 / variable "buildup" to 0

    Every 1 second + User is pressing (right or left arrows) -> Add 1 to variable "buildup"

    If User is pressing (right or left arrows) and variable "buildup" < 4 then (move the guy right or left a little bit) + change animation to "walking"

    If User is pressing (right or left arrows) and variable "buildup" >= 4 then (move the guy right or left a little more) + change animation to "running"

    Something like that.

  6. #6
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Warmachine,
    Attached is what I have so far.

    Pikachu.mfa

    Del_Duio,
    That is a good idea. I might try that but I would like to see if I can create a "run" button by just holding down shift. If not, something like that might work for me.

  7. #7
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What I'd do is where you have the

    "if shift is held down" insert a "if speed is "greater than 0".

    Where you have the "shift is not held down" insert an OR (logical) and then a "if speed is equal to zero"

    Here's the mfa of that. It works on my end just fine.
    Attached files Attached files

  8. #8
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you sptpieman. I wasn't able to download it because of maybe I have 2.0, but I made the changes you did. It worked. My character does not do the run animation while holding down shift.

    But, I am not able to play the other animation by pressing Z. I'm not sure if your file that you attached has the same problem, but how would that be addressed?

  9. #9
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait, that thundershock is supposed to be working? I thought it wasn't implemented yet. Yeah, it didn't work when I downloaded the file, but I'll take a look and see what can be done to fix it.

  10. #10
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry SilkyPop, but for the life of me I can't seem to figure this out. Everything looks like it is in place, and Pikachu does indeed stop when Z is pressed, but it doesn't play the animation. I suspect the idle animation is taking priority due to you using the the built in keyboard. There's an object called Key Object you can get in the extension manager that should fix this. It even has a key released function, so creating the sprinting should be even easier.

    Sorry I couldn't help further.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Running Animation by Name?
    By Wolfking_Warrior in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th November 2013, 06:13 PM
  2. Double JUST the running animation
    By crackerandres in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th November 2012, 09:28 PM
  3. Question - Running File Direct From Installation
    By ashfaellchen in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 30th May 2009, 09:45 AM
  4. question about animation
    By piki in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 24th July 2007, 02:16 AM

Tags for this Thread

Posting Permissions

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