YesNoOk
avatar

How to make simple custom gethit state ? (Read 2306 times)

Started by Momotaro, November 06, 2021, 06:29:34 pm
Share this topic:
How to make simple custom gethit state ?
#1  November 06, 2021, 06:29:34 pm
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
I'm kind of used to coding regulr throws
Also had a look at KFM's custom gethitstate (wall bounce)

But I would like to know how to code a simple custom gethit state.
(nothing related to POTS character)

Just a gethit state with a custom animation.
With both version :
-fall version (<- particularly this one)
-not fall version

also, how to keep the velocity of the hitdef etc.

What would you recommand me as a base or resource to use.
I'm not good to code from scratch.

And this wall bounce state from KFM is alread too complicated/advanced compared to my needs.
Thanks
Last Edit: November 07, 2021, 11:55:30 am by Momotaro
Re: How to make simple custom gethit state ?
#2  November 06, 2021, 11:49:41 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Copy code from common1. Change animations as needed. Alter other bits as needed. Custom state just means they use your code. If the code it written you can use it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: How to make simple custom gethit state ?
#3  November 07, 2021, 11:54:13 am
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
Copy code from common1. Change animations as needed. Alter other bits as needed. Custom state just means they use your code. If the code it written you can use it.

Thanks.
Sometimes, when it goes with game stability, I tend to overthing it.
I remember trying custom states in my early mugen days, and make the oppoenent unstable becuase of forgetting some stuffs like "ctrl" etc.

I'll follow these steps.
Thanks again!

EDIT : also, I noticed KFM wall bounce sequence had a normal fall code as well (in case it doesn't hit a wall)