Minun
Posts : 142 Join date : 2015-03-08
| Subject: Ground attacks triggered while pressing up June 13th 2015, 10:51 am | |
| Yet another problem... Basically, I want to make ground attacks trigger while pressing up. However, the up button does not allow the trigger to work since I would just automatically jump instead of actually using the attack. I want to trigger the attack without jumping.
A good example of someone doing this problem right is K.Y's Ness. But when I looked at the coding, the up attacks doesn't seem to be real triggers in the CMD... | |
|
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: Re: Ground attacks triggered while pressing up June 13th 2015, 12:10 pm | |
| hmmmmmmmmmm........
In K.Y-Shanxi's ness.cmd:
[State -1, jump] type = ChangeState value = 45 triggerall = var(11) != 1 trigger1 = command = "x" trigger2 = command = "y" trigger3 = (command = "up")&&(Var(40) = 0) triggerall = statetype = A triggerall = ctrl triggerall = Var(45) = 0
The ChangeState value = 45 directs to a common1.cns "AirJump Start" StateDef 45. And K.Y-Shanxi has overwrite this command StateDef 45 in his state.st and added this ChangeState: [State 45] type = ChangeState trigger1 = Time = 2 value = 54 ctrl = 1
So, you may need to do the same overwrite for the "AirJump Start" StateDef 45 like that. Also K.Y-Shanxi has set airjump.num = 0 under the [Movement] constants part. | |
|
Minun
Posts : 142 Join date : 2015-03-08
| Subject: Re: Ground attacks triggered while pressing up June 13th 2015, 1:30 pm | |
| - borewood2013 wrote:
- hmmmmmmmmmm........
In K.Y-Shanxi's ness.cmd:
[State -1, jump] type = ChangeState value = 45 triggerall = var(11) != 1 trigger1 = command = "x" trigger2 = command = "y" trigger3 = (command = "up")&&(Var(40) = 0) triggerall = statetype = A triggerall = ctrl triggerall = Var(45) = 0
The ChangeState value = 45 directs to a common1.cns "AirJump Start" StateDef 45. And K.Y-Shanxi has overwrite this command StateDef 45 in his state.st and added this ChangeState: [State 45] type = ChangeState trigger1 = Time = 2 value = 54 ctrl = 1
So, you may need to do the same overwrite for the "AirJump Start" StateDef 45 like that. Also K.Y-Shanxi has set airjump.num = 0 under the [Movement] constants part. You are getting there. It works but I can't really use it like an attack. Maybe this code will help you. Basically it determines how long the player has held the charge. [State 0, 25% charge] type = ChangeState trigger1= time < 25 trigger1 = command != "hold_x" && command = "holdfwd" value = 2501 ctrl = 0 [State 0, 50% charge] type = ChangeState trigger1= time > 50 && time < 26 trigger1 = command != "hold_x" && command != "holdfwd" value = 2502 ctrl = 0 [State 0, 75% charge] type = ChangeState trigger1= time > 75 && time < 100 trigger1 = command != "hold_x" && command != "holdfwd" value = 2503 ctrl = 0 [State 0, 100% charge] type = ChangeState trigger1 = time > 100 trigger1 = command = "hold_x" && command = "holdfwd" value = 2504 ctrl = 0 | |
|
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: Re: Ground attacks triggered while pressing up June 13th 2015, 1:44 pm | |
| - Minun wrote:
- borewood2013 wrote:
- hmmmmmmmmmm........
In K.Y-Shanxi's ness.cmd:
[State -1, jump] type = ChangeState value = 45 triggerall = var(11) != 1 trigger1 = command = "x" trigger2 = command = "y" trigger3 = (command = "up")&&(Var(40) = 0) triggerall = statetype = A triggerall = ctrl triggerall = Var(45) = 0
The ChangeState value = 45 directs to a common1.cns "AirJump Start" StateDef 45. And K.Y-Shanxi has overwrite this command StateDef 45 in his state.st and added this ChangeState: [State 45] type = ChangeState trigger1 = Time = 2 value = 54 ctrl = 1
So, you may need to do the same overwrite for the "AirJump Start" StateDef 45 like that. Also K.Y-Shanxi has set airjump.num = 0 under the [Movement] constants part.
You are getting there. It works but I can't really use it like an attack.
Maybe this code will help you. Basically it determines how long the player has held the charge.
[State 0, 25% charge] type = ChangeState trigger1= time < 25 trigger1 = command != "hold_x" && command = "holdfwd" value = 2501 ctrl = 0
[State 0, 50% charge] type = ChangeState trigger1= time > 50 && time < 26 trigger1 = command != "hold_x" && command != "holdfwd" value = 2502 ctrl = 0
[State 0, 75% charge] type = ChangeState trigger1= time > 75 && time < 100 trigger1 = command != "hold_x" && command != "holdfwd" value = 2503 ctrl = 0
[State 0, 100% charge] type = ChangeState trigger1 = time > 100 trigger1 = command = "hold_x" && command = "holdfwd" value = 2504 ctrl = 0 Hmmmmmm.......this ChangeState code seems to have nothing to do with your "want to make ground attacks trigger while pressing up" need. When you press "up" or hold "up" within any time period, your character just makes a jump no matter what........it is MUGEN default behavior........ I think you might need to override the command jump start state Statedef 40, something like this: ; Jump Start [Statedef 40] type = S physics = S anim = 40 ctrl = 0 sprpriority = 1 facep2 = 1 [State 40, ChangeState] type = ChangeState trigger1 = Time = 0 ;;;;;; or you can put trigger1 = 1 for more safety....... value = [your attack state number] But this way every time your character tries to start jumping, it just performs that attack move........is this what you want? | |
|
Sponsored content
| Subject: Re: Ground attacks triggered while pressing up | |
| |
|