YesNoOk
avatar

Grab Help+Var Help (Read 737 times)

Started by tetsuo9999, October 30, 2007, 06:55:05 pm
Share this topic:
Grab Help+Var Help
#1  October 30, 2007, 06:55:05 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Ive coded a grab and each hit counts as a chain/combo.
Is there a way to not make it display the hitcount?

and Ive coded a Slow down time super it does not work with Var 10.
But it works with Var 0. And if i remove Var 0 it works.
How can i fix this?!  ???
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Last Edit: October 30, 2007, 08:16:08 pm by 9999
Re: Grab Help+Var Help
#2  October 30, 2007, 08:37:08 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Fixed..now..how can i make go back to normal speed when its over?
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Grab Help+Var Help
#3  October 30, 2007, 08:38:52 pm
  • ******
  • [E]
    • Mexico
post your code...
Re: Grab Help+Var Help
#4  October 30, 2007, 08:41:29 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
[mcode][Statedef 789]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 1
ctrl = 0
anim = 1270
velset = 0,0

[State 0,SP]
type = superPAUSE
trigger1 = animelem = 1
time = 20
darken = 99
darken = 1
p2defmul = 0
unhittable = 1

[State 0, Explod]
type = Explod
trigger1 = animelem = 1
anim = 9851
ID = 9851
pos = 0,40
postype = p2  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = 300
pausemove = 1
supermove = 1
scale = 1,1
sprpriority = 5
ontop = 1
removeongethit = 0

[State 0, VarSet]
type = VarSet
trigger1 = time = 1
v = 4   ;fv = 10
value = 300

[State 0, ExplodBindTime]
type = ExplodBindTime
trigger1 = animelem = 1
ID = 9851
time = 300

[State 789, 5]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1[/mcode]

State 3

[mcode][state -3,Slow]
type = pause
trigger1 = (Var(4) > 0) && gametime%2 = 0
time = 1
movetime = 1

[state -3]
type = attackmulset
trigger1 = (Var(4) > 0)
value = 1.2[/mcode]
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Grab Help+Var Help
#5  October 30, 2007, 08:52:14 pm
  • ******
  • [E]
    • Mexico
in your state-3 add a


[mcode][State 0, VarSet]
type = VarSet
trigger1 = 1
v = 4   ;fv = 10
value = var(4)-1[/mcode]
Re: Grab Help+Var Help
#6  October 30, 2007, 09:47:52 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Thanks..Is there a way to rotate P2's sprites on the grab to make him/her fall head first.
Like gief's grab?
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Grab Help+Var Help
#7  October 31, 2007, 10:25:04 am
  • ****
  • Coming Soon?
not sure on this cuz I'm way novice but can't you send them to a custom state that uses the required sprites of upside down?

Hope I expressed that well enough to show how n00bish I am...heh
Latest Yoshi alpha ready for feedback Aug 15th check here for details...
Re: Grab Help+Var Help
#8  October 31, 2007, 05:13:06 pm
  • ******
  • [E]
    • Mexico
you cannalso use angle draw, but the method previously proposed is the most proper one. take a look at kungfuman's throw code as an example.

Bea

Re: Grab Help+Var Help
#9  October 31, 2007, 07:20:52 pm
  • *****
  • A paragon of purity, chastity and innocence
    • Brazil
    • www.smeenet.org
in your state-3 add a


[mcode][State 0, VarSet]
type = VarSet
trigger1 = 1
v = 4   ;fv = 10
value = var(4)-1[/mcode]

I would change the trigger to var(4) > 0
Otherwise it'll go down into the negatives and that can be a very, very bad thing.
To quote Lt. Frank Drebin: "Cheer up, Ed. This is not goodbye. It's just I won't ever see you again."

All your MFG bandwidth is belong to me.
Re: Grab Help+Var Help
#10  October 31, 2007, 08:12:52 pm
  • ******
  • [E]
    • Mexico
only after several million ticks, but you are right.