How to create a clone using the helper sctrl?

Started by aznperson569M, December 01, 2011, 05:34:50 AM

Previous topic - Next topic

aznperson569M

Been kinda wanting to do this for my character. I made a basic code summoning the helper, but I'm kinda in the blue on how to create this. I looked at PotS' Morrigan for reference (Seeing as she has the Dark Force thing), though looking at the code made me even more confused. So I guess my question is; How can I create a clone helper that follows the player's inputs, and cannot be hit by the opponent?

uguu

Cyanide

Give it a nothitby that's always active. give it keyctrl. That way you can use -1 for the nothitby and it will follow all p1's button presses and go to those states.


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.

aznperson569M

#2
I should of posted what happened when I tried this.

I get the helper clone and it follows my commands, but even with playerpush on, the helper doesn't face toward the opponent if I jump over them. Plus, I'd like to have the clone follow the animations of the player if they're hit (Like Morrigan's Dark Force move).

And other thing, whenever the helper hits the opponent, any attack doesn't stun the opponent or push them back. They go into state 5000, but no hitstun is applied to the opponent if the helper attacks them.

Is there a way to have the clone perform my character's actions like half a second later after I do an attack/action/whatever?

uguu

Cyanide

In -1 you will need a turn controller although really if it's in 0, it should be turning natively. As for the push... uh what? Regardless of anything helpers WILL make p2 move. You must have dodgy hitdefs or something.

Or you're managing distance etc by state -2 variable in some way. I don't know. Anyway, the helper should still be able to push p2 with attacks, simply being a helper doesnt' turn that feature off.


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.

aznperson569M

Quote from: Cyanide on December 02, 2011, 02:49:00 AM
As for the push... uh what?
At first the clone would be pushing the opponent, though I fixed that.

The clone now faces towards the opponent, but whenever the character blocks, the clone goes into state 5000. How do I get it to  go into the blocking states? I looked at PotS' Morrigan for reference, and this same thing happens to her in her Dark Force move.

uguu

Cyanide

hardcode it. Ishelper, inguarddist, ctrl = 1 = state 120 (or equivalent) should give the same effect but will need some tweaking/


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.

aznperson569M

Got that part working, thanks.

With that out of the way, I also want the helper to follow my commands a split second after I press the button for an attack or whatever (Like Yang's Sei-ei Enbu). How would I accomplish this?

uguu

Cyanide

helper has to use its own set of variables that count down after the attack command is entered.

you give them the buffer you want the attack to have, then have a load of varadd's to count the value down. Attacks can be used if it's 0, and happen if it's 1. But you set the buffer to say, 20 and it takes 19 ticks to activate.

This may take a while mind you, it will not be fast.


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.