A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Squirrel Girl by fede de 10
by fede de 10 Today at 12:02

» NEW Yolomate's palettes blind man creator!
by yolomate Today at 11:54

» CvS Kolin! 5 years of MMV
by Tradt-Production Today at 11:48

» Varia's "Soul Calibur Arena" Extravaganza!
by Toxin97 Today at 11:16

» Venom and Superboy Prime WIPs
by Toxin97 Today at 11:14

» Agent Toxin WIP
by Toxin97 Today at 11:12

Special Features at MMV





Chat on MMV w/ Discord


Share | 
 

 Ground attacks triggered while pressing up

View previous topic View next topic Go down 
AuthorMessage
Minun

avatar

Posts : 142
Join date : 2015-03-08

PostSubject: Ground attacks triggered while pressing up   Sat 13 Jun - 10:51

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...
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4324
Join date : 2014-08-11

PostSubject: Re: Ground attacks triggered while pressing up   Sat 13 Jun - 12:10

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.
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Minun

avatar

Posts : 142
Join date : 2015-03-08

PostSubject: Re: Ground attacks triggered while pressing up   Sat 13 Jun - 13:30

@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
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4324
Join date : 2014-08-11

PostSubject: Re: Ground attacks triggered while pressing up   Sat 13 Jun - 13:44

@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? Question
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
Ground attacks triggered while pressing up
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: