The Daily Click ::. Forums ::. Klik Coding Help ::. Slowing down an attack animation when hitting an enemy?
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
8th May, 2009 at 22:06:56 -

Anyone know a good way to do this? I just want it so the players animation will slow down when you attack an enemy otherwise it doesn't feel like hitting a solid object. I need it to slow down and then go back to the same speed. If you have ever played Megaman X4 they use this technique to great effect.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
8th May, 2009 at 23:18:40 -

The only way I could think of doing this is by changing the frame rate while the animation is going.

 
n/a

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
16th May, 2009 at 02:14:10 -

You could try making two animations. One animation for swinging wildly at the air and one animation for when you are within striking distance, so it gives the illusion that the object you are hitting slows down the weapons follow through.

Other than that, I'd have no idea.


 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
16th May, 2009 at 03:38:21 -

Do you mean feedback? Like when it pauses for a fraction of a section?

 
.

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
16th May, 2009 at 06:11:50 -

The easiest way is to make all frames of an animation customized

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

JetpackLover



Registered
  01/03/2007
Points
  212
18th May, 2009 at 00:19:36 -

Muz what do you mean by customized? How can I go about this?

Also the only way I could do this would be by making each individual frame slow down speed on a certain frame and then speeding it up after a certain frame, however this is something I don't want to do because it would take many lines of code depending on how many attacks I have.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover

   

Post Reply



 



Advertisement

Worth A Click