YesNoOk
avatar

fighter factory charging envshake? (Read 339 times)

Started by ultimategamer505, January 31, 2009, 02:13:52 am
Share this topic:
fighter factory charging envshake?
#1  January 31, 2009, 02:13:52 am
  • avatar
  • *
hello. Idk if this is the right place 2 post this topic in but plz let me know if it's not.
ok I just got my char 2 charge 4 me (finally...) but I'm having trouble making the charge shake until let go of the buttons that r used 4 charging. here is cns and cmd. plz tell me how I can make it shake till let go of buttons:

CNS:
[Statedef 730]
type    = S
movetype= I
physics = S
juggle  = 9
velset = 0,0
ctrl = 0
anim = 730
poweradd = 20

[State 730, Aura]
type = Explod
trigger1 = animelem = 4
anim = 730
ID = 730
sprpriority = -1
removetime = -1
bindtime = -1
ownpal = 1
scale = 0.7,0.7

[State 730, RemoveAura]
type = RemoveExplod
ID = 730
trigger1 = (command != "charge") || (command != "charge 1") || (life = 0) || stateno != 730

[State 730, 1]
type = Poweradd
trigger1 = Time >= 0
value = 5

[State 730, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 3
value = S79,79
volume = 100

[State 730, 3]
type = ChangeState
trigger1 = command != "charge"
value = 0
ctrl = 1

[State 730, 4]
type = ChangeState
trigger1 = command != "charge 1"
value = 0
ctrl = 1

[State 730, EnvShake]
type = EnvShake
trigger1 = AnimElem = 3
time = (command != "charge") || (command != "charge 1") || (life = 0) || stateno != 730
freq = 900
ampl = -14
phase = 90
;ignorehitpause =
;persistent =

CMD:
;Charge
[State -1 Charge]
type = ChangeState
value = 730
trigger1 = ctrl = 1
trigger1 = command = "charge"
trigger1 = command = "charge 1"
trigger1 = statetype = S
Re: fighter factory charging envshake?
#2  January 31, 2009, 03:55:32 am
  • *****
  • Start wearing purple wearing purple ♪
hello. Idk if this is the right place 2 post this topic in but plz let me know if it's not.
ok I just got my char 2 charge 4 me (finally...) but I'm having trouble making the charge shake until let go of the buttons that r used 4 charging. here is cns and cmd. plz tell me how I can make it shake till let go of buttons:

Well, if what you want is the enviroment to shake while the character charges the super gauge, this block you have there isn't helping for it:

[State 730, EnvShake]
type = EnvShake
trigger1 = AnimElem = 3
time = (command != "charge") || (command != "charge 1") || (life = 0) || stateno != 730
freq = 900
ampl = -14
phase = 90
;ignorehitpause =
;persistent =

In any case is preventing it due to the != signs, that null the triggers while you're in that 730 state, also enviroment will only shake while in animation element no 3 right now.

Change all that to this and should work better:

[mcode][State 730, EnvShake]
type         = EnvShake
trigger1      = GameTime%5
time         = 10
freq         = 140
ampl         = -3
phase         = 120[/mcode]


You can play with that code's number values too until the envshake looks how you like.