The Daily Click ::. Forums ::. Klik Coding Help ::. Animation help in MMF
 

Post Reply  Post Oekaki 
 

Posted By Message

Jay Walker



Registered
  02/12/2005
Points
  8
15th June, 2006 at 00:32:07 -

I'm using MMF and I have this character that shoots with a bow. The shooting animation is two frames (both the same, to make the animation longer). THe problem is if I press the shoot button too fast, the animation gets stuck, and the character doesn't go back to stop until she moves. How can I prevent this?

And I have some alignment problems. I have this other character who uses a dagger. In the stop animation she doesn't have it out. So the attack frames are bigger than the stop frames, causing her body to move back when she attacks. How can I fix it without enlarging and aligning every single frame by hand?

Anyone know how to fix these problems? Thanks in advance for help

Image Edited by the Author.

 
Dance Avatar Dance!

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
15th June, 2006 at 12:29:49 -

For the event which triggers the bow animation, make it

-Upon pressing <button>
[X] Animation "Bow" is playing
Change animation to "Bow"

 
n/a

TCC



Registered
  21/05/2006
Points
  40
15th June, 2006 at 12:32:47 -

edit hotspot in the attack frames

 
hm?

Werbad



Registered
  18/09/2002
Points
  235
15th June, 2006 at 13:15:32 -

* Animation "Bow" is finished
- Restore animation
Works for me...

 
n/a

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
15th June, 2006 at 19:32:19 -

"* Animation "Bow" is finished
- Restore animation
Works for me..."

That won't help the problem he's talking about.

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
16th June, 2006 at 01:51:21 -

I'd do when animation shooting is over change animation to stopped (or whatever the normal one is).

I actually had your second problem myself, so I don't know if this is the "correct" way to do it, but this is how I went around it.

First, you need to decide which frame of animation will be your largest (like the girl while holding the dagger out as far as it will go would be the widest possible picture).

The trick is to make ALL of your frames the size of the largest frame that you'll use. In CotG2, Daxon's highest point is when he reaches up with his sword on the way to a swing to attack. In order to get all the picture's aligned with each other, I had to use the same size "box" to draw ALL of his possible animations that tall. Sure, for most of them it's a lot of blank space, but it works at least.

The other thing you could do is have the weapon be a separate object. This works too, but the problem here (for me at least) is sometimes the weapon will be a bit "off" at times. I used this technique for the first Captain of the Guard, and sometimes the weapon would either appear or disappear a split second before it was supposed to. Even with the "Always set" events it still happened from time to time.

I suggest using the "draw all animations in the same sized box as your largest animation will be" method because it will look better in the long run.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Werbad



Registered
  18/09/2002
Points
  235
16th June, 2006 at 10:27:32 -

The animation stuck problem appears when you restart an animation exactly when it ends... Restoring the animation or changing it when it ends fixes this

 
n/a

TCC



Registered
  21/05/2006
Points
  40
16th June, 2006 at 13:13:12 -

or you could just change the hot spot

 
hm?

Werbad



Registered
  18/09/2002
Points
  235
16th June, 2006 at 16:20:40 -

First: Ignore Phizzy
Second: I answered his first question, not the second...-_-'

 
n/a
   

Post Reply



 



Advertisement

Worth A Click