The Daily Click ::. Forums ::. Klik Coding Help ::. Help with animation and moving
 

Post Reply  Post Oekaki 
 

Posted By Message

Jay Walker



Registered
  02/12/2005
Points
  8
3rd December, 2005 at 11:05:30 -

I'm making a platforming game in MMF,and I have a character that the player controls that can attack. But the problem is that her attacking animation is 6 frames long, and the player can move while the animation is playing, which I don't want. I've tried setting speeds and using the stop movement events, but they don't seem to work. Help please? Thanks in advance.

 
Dance Avatar Dance!

Björn



Registered
  27/11/2005
Points
  6
3rd December, 2005 at 11:33:23 -

What does your movement events look like? Couldn't you add something like:
"(negate) animation "attack" is playing"
to your movement events, that way the character will only move if the "attack" animation is NOT running.

 
n/a

Jay Walker



Registered
  02/12/2005
Points
  8
3rd December, 2005 at 11:55:47 -

I'm using the built-in platforming movement.

What I've tried:
Animation "attack" is playing : active movement stop

And

upon pressing M(the attack button) : set maximum speed to 0

could you simplify that please^? I'm new to this. Thanks

 
Dance Avatar Dance!

Jay Walker



Registered
  02/12/2005
Points
  8
3rd December, 2005 at 11:56:01 -

I'm using the built-in platforming movement.

What I've tried:
Animation "attack" is playing : active movement stop

And

upon pressing M(the attack button) : set maximum speed to 0

could you simplify that please^? I'm new to this. Thanks

 
Dance Avatar Dance!

Daniel [JaDGames]



Registered
  27/05/2005
Points
  261
3rd December, 2005 at 12:21:34 -

Try this instead:
When pressing attack button,Player,Ignore control(and of course)change animation sequence to "attack".
When animation "attack" has finished,Restore control.

Image Edited by the Author.

 
Current Projects:
Breakout
Engine: 99% completed
Levels: 50% completed

Jay Walker



Registered
  02/12/2005
Points
  8
3rd December, 2005 at 12:39:42 -

Thanks. That worked wonders.

But I have another animation problem. I have two animations for jumping and falling. But if the player holds the move button after they have landed, then the character stays in the falling animations. Any way to make that stop? I want it to go to the walking animation if they continue to press the move button after they have landed.

 
Dance Avatar Dance!

Daniel [JaDGames]



Registered
  27/05/2005
Points
  261
3rd December, 2005 at 13:49:55 -

hmm that´s strange...
I dont know if it will work but you can try this:
Animation Falling is playing + player collides with ground,Restore animation sequense (or change animation sequence to stopped).

 
Current Projects:
Breakout
Engine: 99% completed
Levels: 50% completed
   

Post Reply



 



Advertisement

Worth A Click