The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Let's all try it together! Yazawanainn goes breakdancing in MUGEN! (MUGEN X 矢澤ないん)
Ground attacks triggered while pressing up Emptyby Shining Today at 7:23 pm

» Ralaco's Mugen Combat
Ground attacks triggered while pressing up Emptyby ralaco Today at 4:42 pm

» Pocket Dimensional Clash 2 DEMO
Ground attacks triggered while pressing up Emptyby O Ilusionista Today at 10:19 am

» Rogue By Acey Palette issue
Ground attacks triggered while pressing up Emptyby LightingRed99 Today at 5:46 am

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Ground attacks triggered while pressing up

Go down 
2 posters
AuthorMessage
Minun

Minun


Posts : 142
Join date : 2015-03-08

Ground attacks triggered while pressing up Empty
PostSubject: Ground attacks triggered while pressing up   Ground attacks triggered while pressing up EmptyJune 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
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Ground attacks triggered while pressing up Empty
PostSubject: Re: Ground attacks triggered while pressing up   Ground attacks triggered while pressing up EmptyJune 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
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Minun

Minun


Posts : 142
Join date : 2015-03-08

Ground attacks triggered while pressing up Empty
PostSubject: Re: Ground attacks triggered while pressing up   Ground attacks triggered while pressing up EmptyJune 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
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Ground attacks triggered while pressing up Empty
PostSubject: Re: Ground attacks triggered while pressing up   Ground attacks triggered while pressing up EmptyJune 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
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Sponsored content





Ground attacks triggered while pressing up Empty
PostSubject: Re: Ground attacks triggered while pressing up   Ground attacks triggered while pressing up Empty

Back to top Go down
 
Ground attacks triggered while pressing up
Back to top 
Page 1 of 1
 Similar topics
-
» Daywalker Safe Ground Stage 1.1 & 1.0
» How to align my char on ground height that i want to? = Tutorial for that here
» Fiona Belli - Hauting Ground/Demento by Nestor & Li_Kun
» Stopping the AI from idling and more usage of attacks
» I need help with my char's attacks

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