===============================
Projectile Charge (Mobile Version)
===============================
Created by The Necromancer

;---------------------------------------------------------------------------
Projectile Charge  -- I'm not sure what's the "official" name of this feature,
but this is VERY common in the Mega Man games.

This same feature can be used to "pump up" your character, while your he/she
is still able to move.
;---------------------------------------------------------------------------
Under statedef -3, (Since the effect should end if your character gets thrown.)
input:

[State -3]
type = VarAdd
trigger1 = command = "holdx"
var(0) = 1
ignorehitpause = 1

[State -3]
type = VarSet
trigger1 = (stateno = [9000,9001]) || (stateno = [9010,9011]) || (movetype = H && command != "holdx")
var(0) = 0

[State -3]
type = ChangeState
trigger1 = (command != "holdx") && (var(0) = [0,50]) && (ctrl) && (statetype != A)
value = 9000 ;On the ground (Weak effect)

[State -3]
type = ChangeState
trigger1 = (command != "holdx") && (var(0) > 50) && (ctrl) && (statetype != A)
value = 9001 ;On the ground (Strong effect)

[State -3]
type = ChangeState
trigger1 = (command != "holdx") && (var(0) = [0,50]) && (ctrl) && (statetype = A)
value = 9010 ;In the air (Weak effect)

[State -3]
type = ChangeState
trigger1 = (command != "holdx") && (var(0) > 50) && (ctrl) && (statetype = A)
value = 9011 ;In the air (Strong effect)

Feel free to add in any effects.

Next, you create your character's move as the result of releasing the button. 
Because this can be anything you choose, I'll leave you at that. :)
