News:

MFG's Character of the Month: October 2026 Voting

Main Menu

ctrl (CNS)

Started by JustNoPoint, October 01, 2015, 01:49:08 PM

Previous topic - Next topic

JustNoPoint

Part of the Statedef
This parameter will set P1's control. A value of "0" sets the flag to false, "1" sets it to true. If omitted, P1's control flag is left unchanged. For example, to give P1 control, use

ctrl = 1

Cyanide

Ctrl = 1 will allow you to break out of any state into hard coded states like walk, crouch or jump.

You can of course break into other things in the cmd, but those can be defined not to require ctrl if you wish. Basically , you have control over what those states do. You do not have control over the hardcoded state changes, so unless you have a specific reason for allowing the character out of the state it is best to leave ctrl = 0 for the whole thing.


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.

DarkWolf13

It is important that if you are using helpers that have more than one state, ctrl = 0 must be set for the helper's states otherwise, problems can occur.
Beware the Dark Wolf once more!

XGargoyle

Quote from: DarkWolf13 on October 02, 2015, 06:51:07 AM
It is important that if you are using helpers that have more than one state, ctrl = 0 must be set for the helper's states otherwise, problems can occur.

In case that the Helper and the main character share states, it is necessary to add a CtrlSet cotnroller with an IsHelper() trigger, so that the same state is control-enabled while being executed by the main player, but control-disabled when executed by the Helper


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!