A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Cinder Divinewolf Style Release
by Doom Today at 12:28 pm

» Street Fighter V Arcade Edition
by 2dover3d Today at 11:17 am

» crosspotts1.0 works kraven and hammer head
by crosspotts1.0 Today at 10:31 am

» ????????????????????????????
by crosspotts1.0 Today at 10:10 am

» Menat Helper Ball!!
by chuchoryu Today at 1:06 am

» 2018 ANIMATED MUNDI MAP LOCATIONS STAGES releasing...
by MatreroG Today at 12:17 am

Special Features at MMV







Chat on MMV w/ Discord


Share | 
 

 Needing help here

View previous topic View next topic Go down 
AuthorMessage
Mistah Jorge

avatar

Posts : 2056
Join date : 2013-07-04
Age : 20
Location : Portugal

PostSubject: Needing help here   December 24th 2014, 4:10 pm

I tried to use an ifelse here in case if p2 distance from the ground is smaller than -18, doesn't work tough

ifelse(p2bodydist y<-18,-6.8,-10)

i think the bodydist is related with whatever hit him/her/hit so what do i use?
Back to top Go down
View user profile
Werewood

avatar

Posts : 5654
Join date : 2014-08-11

PostSubject: Re: Needing help here   December 27th 2014, 3:24 pm

Hmmmmmmmm.........I don't know what your "ifelse(p2bodydist y<-18,-6.8,-10)" is for.......
But, it seems normally correct to me.

I tried to use your "ifelse(p2bodydist y<-18,-6.8,-10)" with a Sagat's taunt Statedef 195 to test.

Please see my MUGEN screen shots below (I used DisplayToClipboard to see the on-changing P2BodyDist Y values):

Code:
[Statedef 195]
type = S
movetype = I
physics = S
ctrl = 0
anim = 195
velset = 0

[State 195, 1]
type = PlaySnd
trigger1 = AnimElem = 4
value = s190,0

[State 195, 9]
type = ChangeState
trigger1 = AnimTime = 0
value = ifelse(p2bodydist y < -18, 200, 210)
ctrl = 0

...................

[StateDef -2]

[State -2, Display Guard Points]
type = displaytoclipboard
trigger1 = 1
text = "p2bodydisty = %d"
params = p2bodydist y

Sagat doing a taunt:


Sagat doing light punch after a taunt while P2BodyDist Y = -82.96 (which is < -18):


Sagat doing medium punch after a taunt while P2BodyDist Y = 0 (which is > -18):


As a result, P2BodyDist Y is working with this Sagat and it seems to have nothing to do with hitting or getting hit (use ignorehitpause = 1 just in case...).

So, your "P2BodyDist Y doesn't work tough" case might have several reasons:
- the yscale and/or height in [Size] are having some incorrect values?
- some hit boxes in the AIR file are having some weird set up?
- a misuse of ScreenBound?
- forgot to round-up (Ceil) or round-off (Floor) some decimal values?
- vertical motion too fast too wide?
- some P2 custom state issue?
..................................

Well, perhaps you may want to post all the MUGEN code, that has your "P2BodyDist Y doesn't work tough" issue, here for further investigation........
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mistah Jorge

avatar

Posts : 2056
Join date : 2013-07-04
Age : 20
Location : Portugal

PostSubject: Re: Needing help here   January 5th 2015, 9:03 pm

Hm... i have no idea what was it then, thanks anyway (sorry for late reply)
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Needing help here   

Back to top Go down
 
Needing help here
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: