YesNoOk
avatar

How to make a block button? (Read 193 times)

Started by Nny, August 18, 2013, 03:28:19 pm
Share this topic:

Nny

How to make a block button?
#1  August 18, 2013, 03:28:19 pm
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
I've been wondering and trying to do this. I want to make a block button for either S or Z. Also a button for something like charging up your meter, like dbz or something.
Re: How to make a block button?
#2  August 18, 2013, 10:37:25 pm
  • *****
  • Mang Of Steel
    • Canada
    • network.mugenguild.com/cybaster/hosted.html
for the power charge, you have to use a state with the PowerAdd parameter...example:

Code:
[State 730, Powering Up]
type = PowerAdd
trigger1 = time%5
value = 2+ifelse(time > 20,10,0) ; If player is charging for more than 20 ticks, INCREASE power by 10 (2+10 = 12, every 5 ticks)

and then make sure to use a ChangeState (with the powermax trigger) for when the character has full power...example:

Code:
[State 280, Reached Full Power]
type = ChangeState
trigger1 = command != "holdb" && command != "holdy"      ; When I release "B" and "Y" buttons, char will go to end state.
trigger2 = power = powermax
value = 731
ctrl = 0

(thanks Ryon for originally explaining this!)

that's the core...after, you can add various parameters like Explod (if you need sparks or other effects during the animation) or PalFx (if you want the character to flash) etc...

opening other characters and analyzing the coding a little will help you understand some of this (look at DBZ chars for example)
Last Edit: August 18, 2013, 10:40:40 pm by Joulz

Nny

Re: How to make a block button?
#3  August 19, 2013, 03:32:56 am
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
Augh, thank you so much! :D