YesNoOk
avatar

DEVIL TRIGGER LIKE EFFECT, super state  (Read 7253 times)

Started by germanvasquez, January 16, 2018, 12:29:40 am
Share this topic:
DEVIL TRIGGER LIKE EFFECT, super state
#1  January 16, 2018, 12:29:40 am
  • avatar
  • **
    • Honduras
I want to make a custom power up state

I need ideas to code two things

1: Special red glowing effect to the character

2: How to set a timer for the power state to turn off


thanks in advance
Jesus loves you
Re: DEVIL TRIGGER LIKE EFFECT, super state
#2  January 16, 2018, 10:03:38 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
1. PalFX, AfterImage or Helper with AngleDraw are some of your options.

2. Use variables or an explod/helper with a defined removal time
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!
Re: DEVIL TRIGGER LIKE EFFECT, super state
#3  January 16, 2018, 08:24:13 pm
  • *****
  • Shame on you!
    • USA
You'll also want something like this
trigger1 = power >= 3000
in the changestate.
vVv Ryuko718 Updated 10/31/22 vVv
Re: DEVIL TRIGGER LIKE EFFECT, super state
#4  January 17, 2018, 06:25:22 pm
  • avatar
  • **
    • Honduras
1. PalFX, AfterImage or Helper with AngleDraw are some of your options.

2. Use variables or an explod/helper with a defined removal time

I ve never used a var to set a removal time,

How can I code it in mugen?
Jesus loves you
Re: DEVIL TRIGGER LIKE EFFECT, super state
#5  January 17, 2018, 11:04:13 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Let's say you change to state 1234 to power up.

You don't necessarily need to use a Var.


So in State 1234:

Code:
[State 1234, power up Effect]
type = Explod
trigger1 = Time = 0
removetime = -1
anim = 1234 ;your super awesome charge effect
id = 1234 ;set an ID so you can remove it

[State 1234, power up]
type = PowerAdd
trigger1 = 1
value = 1

[State 1234, Remove power up Effect]
type = RemoveExplod
trigger1 = command != "POWERUP" ;Whatever the button combination is that you are holding
trigger2 = power = 3000 ;whatever the max power level is
id = 1234 ;remove the effect

[State 1234, Stop powering up, go back to Stand]
type = ChangeState
trigger1 = command != "POWERUP" ;Whatever the button combination is that you are holding
trigger2 = power = 3000 ;whatever the max power level is
Value = 0
ctrl = 1


Then somewhere in State 2, in case P2 hits you out of charge up state:

Code:
[State 1234, Remove power up Effect]
type = RemoveExplod
trigger1 = StateNo != 1234
id = 1234 ;remove the effect