YesNoOk
avatar

The best way to put p2 in a place I need (Read 3532 times)

Started by WastedCoder, September 25, 2021, 04:39:08 PM
Share this topic:
The best way to put p2 in a place I need
#1  September 25, 2021, 04:39:08 PM
  • *
  • Code for coding
  • Are you coding?
    • UK
I need that for Super, to force p2 to be on the ground before p2 starts receiving hits.
What is the best way to put an enemy on the ground in case he's in the air when the super is being performed?
Also, if Pause controller is being instantly activated with the activation of a super will it stand on this 'forcing p2 to the ground' way?
Coding... over and over again...
Can't stop coding
Re: The best way to put p2 in a place I need
#2  September 29, 2021, 03:06:48 AM
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Can't force p2 to do anytbing without hitting him first. You could make a full screen invisible hit that puts them on the ground and then activates the rest of it but thats kinda mean. If you miss you miss thats just tough is the way things normally work.


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: The best way to put p2 in a place I need
#3  September 30, 2021, 02:32:56 PM
  • *
  • Code for coding
  • Are you coding?
    • UK
Can't force p2 to do anytbing without hitting him first. You could make a full screen invisible hit that puts them on the ground and then activates the rest of it but thats kinda mean. If you miss you miss thats just tough is the way things normally work.

And that's what I want. Sorry for did not making it clear from the beginning. He gets the first hit which has to stun him and then other things going on, but it all breaks if enemy can move, so what do I do to stun him while the rest goes on? I just need to make sure that he doesn't move after the first hit lands.
Coding... over and over again...
Can't stop coding
Re: The best way to put p2 in a place I need
#4  October 04, 2021, 12:08:42 AM
  • *****
  • Shame on you!
    • USA
vVv Mauru Mauru Released vVv
Re: The best way to put p2 in a place I need
New #5  October 04, 2021, 01:34:02 PM
  • *
  • Code for coding
  • Are you coding?
    • UK
You can use the HitDef in P1 to Snap p2 into position.
https://mugenguild.com/forum/topics/hitdef-sctrls-169450.0.html
You might want to use TargetBind
https://mugenguild.com/forum/topics/targetbind-sctrl-170204.0.html
Use PauseTime to lock P2 into the hit long enough.

Thanks ^^

EDIT: TargetBind doesn't work, so I just put these in .cmd and AI
type = ChangeState
triggerall = ailevel = 0
triggerall = p2statetype != A
triggerall = p2bodydist y = 0
Triggerall = power >= 3000
value = 6200
triggerall = command = "SUPER2"
Triggerall = statetype != A
trigger1 = ctrl


Edit2: found the way with the snap.
Coding... over and over again...
Can't stop coding
Last Edit: October 04, 2021, 02:14:34 PM by WastedCoder