YesNoOk
avatar

Transformation issues (Read 453 times)

Started by cake-kun, February 12, 2018, 08:50:54 am
Share this topic:
Transformation issues
#1  February 12, 2018, 08:50:54 am
  • avatar
  • *
Hello so i recently got into coding for mugen im currently trying to make my character have different transformations while at the same time using pallete remap the issue is everytime  i do this everything works fine except the standing animation for the transformation is just one frame anyone know how i could fix it?
Code:
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = (Anim != 5 && Anim != 7) && Anim != var(1) * 2
trigger2 = (Anim = 5 || Anim = 7) && !AnimTime
value = var(1) * 2
thats the first transformation code and this is the second
Code:
[State 0, ChangeAnim]
type = ChangeAnim
triggerall= var(2)=1
trigger1 = (Anim != 5 && Anim != 7) && Anim != var(2) * 6
trigger2 = (Anim = 5 || Anim = 7) && !AnimTime
value = var(2) * 6
                         

also is there a way to make states have a percent trigger lets say  i want a mode to trigger by itself with only a 20% chance how would i add that ?
Last Edit: February 12, 2018, 09:18:30 am by cake-kun
Re: Transformation issues
#2  February 12, 2018, 10:10:25 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
what are the possible values for var(1) and var(2)? Why are you keeping two variables for the transformation? What are the animation groups that you use for the transformation?

For the percentage, simply use the trigger "random"
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!