YesNoOk
avatar

Running slide (Last Blade 2) (Read 4460 times)

Started by Average Mugen Guild Poster, April 26, 2010, 03:22:46 am
Share this topic:
Running slide (Last Blade 2)
#1  April 26, 2010, 03:22:46 am
  • ****
  • im finally just like everyone else
    • sites.google.com/site/thespritehaven/
My first code actually, I whipped this up in about 10 or so minutes. (I used the search and didn't find anything of this kind.)
Tell me if it's an out of date method of doing this or something.
Code:
[Statedef 6069]
type = S
physics = S
anim = 6069
sprpriority = 1
ctrl = 0

[State 6069, 1]
type = VelSet
trigger1 = 1
x = 1

[State 6069, 2]
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn

[State 6069, 4]
type = Changestate
trigger1 = Animtime = 0
value = 0
ctrl = 1
You need to add this too.
Code:
[Statedef 100]
type    = S
physics = S
anim = 100
sprpriority = 1
ctrl = 0

[State 100, 4]
type = ChangeState
trigger1 = command != "holdfwd"
trigger2 = Command = "holddown"
trigger3 = Command = "holdback"
value = 6069
Hopefully this can help some noob who needs to do something like this, since I had to figure it out by myself. ;)
Edit: Fixed the ctrl.
Edit 2: Anyone know how to prevent crouching, but keep allowing jump?

fucking bad poster asshole that home32 bitch
Last Edit: April 26, 2010, 04:18:26 am by home32
Re: Running slide (Last Blade 2)
#2  May 04, 2010, 07:42:55 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com

  • Online
You can also place the
Code:
[State 100, 4]
type = ChangeState
trigger1 = command != "holdfwd"
trigger2 = Command = "holddown"
trigger3 = Command = "holdback"
value = 6069

You can actually place that in the cmd file instead of state 100, but you need to add triggerall = stateno = 100.

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: Running slide (Last Blade 2)
#3  May 05, 2010, 02:36:20 am
  • ****
  • im finally just like everyone else
    • sites.google.com/site/thespritehaven/
You can also place the
Code:
[State 100, 4]
type = ChangeState
trigger1 = command != "holdfwd"
trigger2 = Command = "holddown"
trigger3 = Command = "holdback"
value = 6069

You can actually place that in the cmd file instead of state 100, but you need to add triggerall = stateno = 100.
Oh, yeah. I forgot about the ! thing.
And thanks for the tip, I didn't know you could do that. :)

fucking bad poster asshole that home32 bitch