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
» Tekken chuchoryu proyect
by rj10018576 Today at 12:14 pm

» I need help.. [League of Legends PROJECT]
by mistermach Today at 12:08 pm

» Artifical Monster Mouth
by Mistah Jorge Today at 11:39 am

» Axel Stone by Nexus Games/Shin Mako & SeanAlty - 100 Youtube Subs Release
by JARRO77 Today at 11:02 am

» oNearo Sprites
by Mistah Jorge Today at 10:31 am

» [FORUM GAME] Alphabet Soup!
by volzzilla Today at 10:06 am

Special Features at MMV








Share | 
 

 Ground attacks triggered while pressing up

View previous topic View next topic Go down 
AuthorMessage
Minun



Posts : 142
Join date : 2015-03-08

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



Posts : 3162
Join date : 2014-08-11

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



Posts : 142
Join date : 2015-03-08

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



Posts : 3162
Join date : 2014-08-11

PostSubject: 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? 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: