UPLOAD, SHARE, PRESERVE MUGEN FOR ETERNITY!

Results 1 to 4 of 4

Thread: Win Pose doesn't detect p2bodydist

  1. #1
    Join Date
    Jan 2018
    Location
    Posts
    13
    Uploads
    1
    Comments
    0

    Default Win Pose doesn't detect p2bodydist

    I'm trying to make a win pose for my character where they walk over to the losing player and switch animations. However, using P2BodyDist, more specifically like
    Code:
    [Statedef 181]
    type = S
    ctrl = 0
    anim = 20
    velset = 0, 0
    facep2 = 1
    
    [State 181, 1]
    type = NotHitBy
    trigger1 = 1
    value = SCA
    time = 1
    
    [State 181, 2]
    type = VelSet
    trigger1 = time = 0
    x = 2
    
    [State 181, 3]
    type = ChangeState
    trigger1 = P2BodyDist X <= 20
    value = 182
    
    [Statedef 182]
    type = S
    ctrl = 0
    anim = 180
    velset = 0,0
    facep2 = 1
    
    [State 182, 1]
    type = NotHitBy
    trigger1 = 1
    value = SCA
    time = 1
    has my character just switching animations without moving, even if they are all the way across the screen. What did I do wrong?



  2. #2
    mulambo is offline wicked and toxic user banned for repeated defamation, spreading plain lies with clear intent to damage people's reputation and/or ruin people's motivation
    Join Date
    Aug 2016
    Location
    Posts
    1,733
    Uploads
    70
    Comments
    55

    Default Re: Win Pose doesn't detect p2bodydist

    try changing

    P2BodyDist X <= 20
    to
    P2BodyDist X = 0

    Also, instead of:

    [State 181, 2]
    type = VelSet
    trigger1 = time = 0
    x = 2

    try

    [State 181, 2]
    type = VelSet
    trigger1 = time >= 0
    x = 2

    In your case probably you have to add a velocity stop with the same trigger of changestate

    [State 181, 2]
    type = VelSet
    trigger1 = P2BodyDist X = 0
    x = 0

    also try to remove "velset = 0, 0" from the statedef 181
    Last edited by mulambo; Feb 15, 2018 at 21:14.

  3. #3
    Join Date
    Jan 2018
    Location
    Posts
    13
    Uploads
    1
    Comments
    0

    Default Re: Win Pose doesn't detect p2bodydist

    I made the changes you suggested, however my character still automatically goes into the second state.

    Code:
    ;---------------------------------------------------------------------------
    ; Win state decider
    ; CNS difficulty: basic
    [Statedef 180]
    type = S
    
    [State 180, 1]
    type = ChangeState
    trigger1 = Time = 0
    value = 181
    
    ;---------------------------------------------------------------------------
    ; Win pose 1
    ; CNS difficulty: basic
    [Statedef 181]
    type = S
    ctrl = 0
    anim = 20
    facep2 = 1
    
    [State 181, 1]
    type = NotHitBy
    trigger1 = 1
    value = SCA
    time = 1
    
    [State 181, 2]
    type = VelSet
    trigger1 = time >= 0
    x = 2
    
    [State 181, 3]
    type = VelSet
    trigger1 = P2BodyDist X = 0
    x = 0
    
    [State 181, 4]
    type = ChangeState
    trigger1 = P2BodyDist X = 0
    value = 182
    
    [Statedef 182]
    type = S
    ctrl = 0
    anim = 180
    facep2 = 1
    
    [State 182, 1]
    type = NotHitBy
    trigger1 = 1
    value = SCA
    time = 1

  4. #4
    mulambo is offline wicked and toxic user banned for repeated defamation, spreading plain lies with clear intent to damage people's reputation and/or ruin people's motivation
    Join Date
    Aug 2016
    Location
    Posts
    1,733
    Uploads
    70
    Comments
    55

    Default Re: Win Pose doesn't detect p2bodydist

    Well, try removing the second state and instead of ChangeState use ChangeAnim. Afterall it's no use to change states if the only difference is the animation used.

Similar Threads

  1. Why my character doesn't air jump?
    By Malxrange in forum MUGEN Development Help
    Replies: 3
    Last Post: Nov 23, 2018, 13:28
  2. How to detect X and Y pos of char?
    By RedAsh in forum MUGEN Configuration Help
    Replies: 2
    Last Post: Feb 04, 2018, 12:48
  3. My VS Mode doesn't work. Can you help me?
    By MoshFan64 in forum MUGEN Configuration Help
    Replies: 2
    Last Post: Dec 14, 2017, 03:07
  4. In game screen doesn't fit?
    By SoraTobennh in forum MUGEN Configuration Help
    Replies: 1
    Last Post: Sep 07, 2010, 17:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •