YesNoOk
avatar

Character not landing.... (Read 1095 times)

Started by tizerist, May 27, 2019, 09:49:23 pm
Share this topic:
Character not landing....
#1  May 27, 2019, 09:49:23 pm
  • avatar
  • *
Last Edit: May 27, 2019, 10:31:32 pm by tizerist
Re: Character not landing....
#2  May 28, 2019, 12:25:09 am
  • ***
    • Brazil
    • deathscythemugen.neocities.org
You're puting character B in a custom state coded in character A files. You can tell it is a custom state because is in yellow.
Is the move a throw or something? Because states 800~899 are usually throws, and throws always use custom state.
Re: Character not landing....
#3  May 28, 2019, 06:22:18 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Go into character A .CNS files and find State 822.  There is probably faulty coding there.

Copy/paste that code here if you can't determine the issue (wrap it in Spoiler tags)

Re: Character not landing....
#4  May 29, 2019, 12:04:19 am
  • avatar
  • *
Ok, cheers, I only really use watch mode, I don't think it's a throw.
Spoiler, click to toggle visibilty
Re: Character not landing....
#5  May 29, 2019, 05:14:41 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
What I am seeing is a custom state that the character being hit goes into.

The character is given Air physics, given a Velocity (launched upwards), then that's it.


I'm just going to copy/paste what Kung Fu Man uses to end his "being thrown" custom state.
Just copy/paste this into the end of Statedef 822 and you should be good to go.

[State 821, 2] ; Recover near ground (use ChangeState)
type = ChangeState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200 ;HITFALL_RECOVER

[State 821, 3] ; Recover in mid air (use SelfState)
type = SelfState
triggerall = Vel Y > 0
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210 ;HITFALL_AIRRECOVER

[State 821, 4] ;Hit ground
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

Re: Character not landing....
#6  June 07, 2019, 10:14:00 pm
  • avatar
  • *
^ ^ All of that text was already there
Re: Character not landing....
#7  June 08, 2019, 05:40:39 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
...in State 822?

Well you didn’t copy/paste that part!  Please share the code for the entire State 822

Re: Character not landing....
#8  June 08, 2019, 01:35:53 pm
  • avatar
  • *
Ah ok.
Spoiler, click to toggle visibilty
Re: Character not landing....
#9  June 10, 2019, 04:56:11 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Physics is A so the character should be dropping down. But you say they aren't. Given that the time in state appears to be over 9000 they also aren't being put into it over and over again.

Is that the only statedef 822 the character has? Sometimes people double up.

Also can we have a full screen shot of the issue rather than just debug?


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Character not landing....
#10  June 15, 2019, 05:27:50 pm
  • avatar
  • *
The only other bit of text that contains 822 is this section of the .cns:
Spoiler, click to toggle visibilty
and in the .air file:
Spoiler, click to toggle visibilty

PICTURE (tenma has floated up off screen after the glitch)
https://imgur.com/ZLZayUW
Last Edit: June 15, 2019, 05:30:58 pm by tizerist
Re: Character not landing....
#11  June 15, 2019, 05:50:34 pm
  • ***
    • Brazil
    • deathscythemugen.neocities.org
Weird cause nothing seems to be wrong here. Let's try something else. Change physics to N and add a veladd code to emulate gravity. Your code should look like this:

Spoiler, click to toggle visibilty

Test and see what is happening.
Re: Character not landing....
#12  June 15, 2019, 10:51:45 pm
  • avatar
  • *
Wow, that worked! Thank you! What the hell did I just change?
Re: Character not landing....
#13  June 16, 2019, 12:00:27 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You told mugen to simulate gravity. Can also be done with the gravity sctrl rather than velset. Basically you told it to do what physics A should have been doing. Ummm you have set a y accel value in the constants right?


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Character not landing....
#14  June 30, 2019, 06:49:30 pm
  • avatar
  • *
yaccel for tenma (the floater) is .33