YesNoOk
avatar

ctrl (CNS) (Read 7406 times)

Started by JustNoPoint, October 01, 2015, 01:49:08 pm
Share this topic:
ctrl (CNS)
New #1  October 01, 2015, 01:49:08 pm
  • ******
    • www.justnopoint.com/
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

Code:
ctrl = 1
Last Edit: October 13, 2015, 07:59:53 pm by Odb718
Re: ctrl (CNS)
#2  October 02, 2015, 06:46:00 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.
Re: ctrl (CNS)
#3  October 02, 2015, 06:51:07 am
  • ****
  • Vs Style Debuts Tag Project CEO
  • The Dark Wolf Returns
    • USA
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!
Re: ctrl (CNS)
#4  October 02, 2015, 09:15:16 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
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!