YesNoOk
avatar

[Solved] Help with jumping against helper's stun.. just read (Read 311 times)

Started by BoyBoyz, September 09, 2011, 05:25:34 pm
Share this topic:
[Solved] Help with jumping against helper's stun.. just read
#1  September 09, 2011, 05:25:34 pm
  • ***
Ok Hi again! As you all know, I'm helping Werewood to update his Saiki. I've this problem to put to you all:

For the dark binding stun, statedef 1099, the enemy will be held in place ON THE GROUND. However, airjumpfwd and jumpfwd when near the enemy will push the enemy out of the dark binding stun animation, though the enemy will still be stunned. Any way to solve this? Here is the part of the code where I think the problem lies:

[Statedef 1099]
type     = S
movetype = I
physics  = S
anim     = 1099
ctrl     = 0
sprpriority = 100

[State 1888, 1]
type = posset
trigger1 = time = 0
y = 25

[State 1888, 1]
type = posfreeze
triggerall = pos y = 25
trigger1 = time = 1
y = 25

[State 1888, 1]
type = Velset
triggerall = ParentDist X = [-60,60]
triggerall = root, anim = 20
trigger1 = time >= 0
trigger1 = root, facing != Enemynear, facing
x = const(velocity.walk.fwd.x)/2

[State 1888, 1]
type = velset
triggerall = ParentDist X = [-10,10]
triggerall = root, anim = 20
trigger1 = time >= 0
trigger1 = root, facing = enemynear, facing
x = -(const(velocity.walk.fwd.x)/2)


[State 1888, 1]
type = velset
triggerall = root, stateno != 20
trigger1 = time >= 0
x = 0
y = 0

Please download and test to get a better idea, if you don't get the problem here. The problem occurs with characters that saiki can't jump over (as a result I increased his jump height). Characters like juggernaut, rugal2k2 etc. Lower his jump.neu and see what I mean when you jump against them
Last Edit: September 11, 2011, 02:43:55 am by BoyBoyz
Re: Help with jumping against helper's stun.. just read
#2  September 09, 2011, 11:19:23 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Look up PlayerPush in the docs.


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: Help with jumping against helper's stun.. just read
#3  September 11, 2011, 02:07:55 am
  • ***
Ok playerpush didn't work, but I tried posadd, with x = p2bodydist x

[State 1000, Posadd]
type = posadd
trigger1 = time >=0
x = p2bodydist x
y = 0
persistent = 1

Now the helper sticks to p2 always, even when jumping against him/her. But the problem is, the helper gets stuck ON THE EDGE of p2 clsn. How to make the helper centralized and yet stick? Here's a pic of the bug:

Re: Help with jumping against helper's stun.. just read
#4  September 11, 2011, 02:14:59 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You use playerpush in p2's custom state. Not your own.


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: Help with jumping against helper's stun.. just read
#5  September 11, 2011, 02:20:45 am
  • ***
What do you mean by p2 custom state? The stunned state? If so I tried already, but it does nothing : (

Hmm. is there a way to centralize the posadd with p2bodydist x?

2OS

Re: Help with jumping against helper's stun.. just read
#6  September 11, 2011, 02:22:25 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
Playerpush in helper state with a value of 0. Use velset instead of posadd.


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Help with jumping against helper's stun.. just read
#7  September 11, 2011, 02:25:09 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
What you want to do.

Hit player 2. Put him in a custom hit state (not difficult here) and leave him there for a bit. Remember to use selfstate to allow him out. On him have

type = playerpush
trigger1 = 1
value = 0

So he cannot push.

Now, you have 2 options for the helper state and centering it on p2. One is to have the helper bind P2 to the required location using

type = targetbind
pos = 0,0

The other is to have the helper snap to p2's location with
type = bindtotarget
pos = 0,0,foot

Up to you.

Addition to the above, the helper has no hitboxes, won't be pushed. p2 has hitboxes so he has to be the one that's not being pushed.


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: Help with jumping against helper's stun.. just read
#8  September 11, 2011, 02:32:46 am
  • ***
i'll try out bindtotarget... sounds interesting. What I want to do is have the black helper stick to p2 clsn, and when u walk against or jump against the helper (walking forward or walking back against it), the helper moves with the p2 player along the ground.

So basically the helper is just there to follow p2 around but stick to him. The stun comes from the fireball actually. Will let you know if your advice works

2OS

Re: Help with jumping against helper's stun.. just read
#9  September 11, 2011, 02:36:18 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
""On the edge of p2's clsn"" threw me off, instant thought was ""it's pushable so it isn't centering"".


3rd binding option is

type=velset
trigger1=1
x=p2dist x
y=p2dist y


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Help with jumping against helper's stun.. just read
#10  September 11, 2011, 02:42:02 am
  • ***
LOL SO IT's P2DIST instead of p2bodydist x!!!!! ARGH! SOLVED!!! Thanks both of you. Learn a lot from this!!
Re: [Solved] Help with jumping against helper's stun.. just read
#11  September 11, 2011, 03:00:19 am
  • ***
Just to let you all know, I'm using the velset thingy, and another posadd to shift the p2 into proper position within the dark bind. Works! Darn cool.

[State 0]
type=velset
trigger1=1
x=p2dist x
y=0

[State 1000, Pos]
type = posadd
trigger1 = 1
x = 30