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
» Rewrich Wallach by iruka, updated 4/12/16
by pophigof Today at 1:03 am

» NEW Yolomate's palettes blind man creator!
by TheRedBeast Yesterday at 11:29 pm

» Spector Palettes
by TheRedBeast Yesterday at 11:16 pm

» Who is in your MVC4 wishlist
by Darthpool Yesterday at 9:58 pm

» Killer Croc released
by ME72K_U Yesterday at 9:27 pm

» Anti-monitor DC by bam77
by ME72K_U Yesterday at 9:23 pm

Special Features at MMV








Share | 
 

 Needing help here

View previous topic View next topic Go down 
AuthorMessage
Mistah Jorge



Posts : 1741
Join date : 2013-07-04
Age : 18
Location : Portugal

PostSubject: Needing help here   December 24th 2014, 10:10 am

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
borewood2013



Posts : 3127
Join date : 2014-08-11

PostSubject: Re: Needing help here   December 27th 2014, 9:24 am

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



Posts : 1741
Join date : 2013-07-04
Age : 18
Location : Portugal

PostSubject: Re: Needing help here   January 5th 2015, 3: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
 
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: