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
» Anyone remember the browser anime tcg game Star Era?
by borewood2013 Today at 11:22 am

» Marvel Heroes Omega MMO PC online gaming is Shutting Down
by borewood2013 Today at 11:02 am

» Super Armor Won't go away
by borewood2013 Today at 10:45 am

» What do you dislike about yourself?
by borewood2013 Today at 10:37 am

» NEW Yolomate's palettes blind man creator!
by yolomate Today at 9:51 am

» The MMV News
by yolomate Today at 9:51 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 : 2016
Join date : 2013-07-04
Age : 19
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

avatar

Posts : 5212
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

avatar

Posts : 2016
Join date : 2013-07-04
Age : 19
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: