YesNoOk
avatar

Some Things i want to add to the normal states def (Read 699 times)

Started by N_Shikamaru, February 15, 2008, 08:15:21 pm
Share this topic:
Some Things i want to add to the normal states def
#1  February 15, 2008, 08:15:21 pm
  • avatar
  • *
i want to add a crouch walking , well how should i do that or to be exactly what should i add?
and i want to make a 2 jump(ing) and i want that the char "rolls" after the second one, so how to do that or what to add
Re: Some Things i want to add to the normal states def
#2  February 15, 2008, 10:49:22 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Well mugen has air jump built in, add some extra animations for air jump to use and you're done.

As for crouch walking. Create a new state, copy state 20 and change it up a bit. You might need to use the assertspecial nowalk as well.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Some Things i want to add to the normal states def
#3  February 16, 2008, 05:35:00 pm
  • avatar
  • *
Well mugen has air jump built in, add some extra animations for air jump to use and you're done.

As for crouch walking. Create a new state, copy state 20 and change it up a bit. You might need to use the assertspecial nowalk as well.

to jump: yeah ok i understood that but can you or someoneelse explain what to add? im something like a newbie so i dont everything and dont understand these  ;P

to crouch: ok i think i understand the crouch walking but ehm what should i edit? its nearly the same but hes in crouch so what to do?
edit: ok i tried the crouch walk thats what i have but i does not work, now i really dont know what to do...

; Crouch Walk
[Statedef 15]
type    = C
physics = C
sprpriority = 0

[State 20, 2]
type = VelSet
trigger1 = command = "holdfwd"
trigger1 = animelem = 3
x = 5

[State 20, 2]
type = VelSet
trigger1 = command = "holdback"
trigger1 = animelem = 3
x = -5

[State 20, 3]
type = ChangeAnim
triggerall = command = "holdfwd"
trigger1 = Anim != 15 && Anim != 6
trigger2 = Anim = 6 && AnimTime = 0
value = 15

[State 20, 4]
type = ChangeAnim
triggerall = command = "holdback"
trigger1 = Anim != 16 && Anim != 6
trigger2 = Anim = 6 && AnimTime = 0
value = 16

[State 15, ChangeState]
type = ChangeState
trigger1 = command != "holdfwd" && command != "holdback"
value = 11
ctrl = 1



i hope you or someoneelse help me :)
Last Edit: February 16, 2008, 09:22:58 pm by N_Shikamaru
Re: Some Things i want to add to the normal states def
#4  February 16, 2008, 10:59:34 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You'll need to add a changestate to actually get into it as well. I'm not sure if ctrl = 1 will force you into crouch. It might. You'll probably need to have ctrl = 0.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Some Things i want to add to the normal states def
#5  February 17, 2008, 02:13:24 pm
  • avatar
  • *
You'll need to add a changestate to actually get into it as well. I'm not sure if ctrl = 1 will force you into crouch. It might. You'll probably need to have ctrl = 0.


ok first i added to the crouch state a changestate to the crouch walk , it didnt work thats what i added:
[State 11]
type = ChangeAnim
trigger1 = command = "holdfwd"
trigger2 = command = "holdback"
value = 15

then i change the ctrl to 0 but it also didnt help  ???
so pls i dont knwo what to do  o_O
Re: Some Things i want to add to the normal states def
#6  February 17, 2008, 09:28:47 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Thats a changeanim.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Some Things i want to add to the normal states def
#7  February 17, 2008, 10:18:30 pm
  • avatar
  • *
höö?? well i dont know what went wrong but it this one:
[State 11, ChangeState]
type = ChangeState
trigger1 = command = "holdfwd" && command = "holdback"
value = 15
ctrl = 0


anyways it does not help you know why?
i mean there seems nothing wrong with it but still no working...
maybe another suggestion or helpidea?
Re: Some Things i want to add to the normal states def
#8  February 17, 2008, 10:28:51 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
1) That is true if you're holding both back and forward.
2) you're also holding down. you should probably factor that in.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Some Things i want to add to the normal states def
#9  February 18, 2008, 05:10:26 pm
  • avatar
  • *
oki thx cyanide i solved my problem its ok now thx you:) and plus you didnt give me the direct code i just realized its better^^


ok back to my second problem i want to add 2 jump to my char yeah i can change that if i change that :airjump.num = 2    but
i want the char jumps one time normal but after the second i want that he is rolling but no command just rolling down

it would be great if someone can help:)
Re: Some Things i want to add to the normal states def
#10  February 18, 2008, 09:47:14 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Make state 45 use a specific animation. Copy it from common1.cns and paste it into your own. The use the anim line to have it do the new animation.

If you're using a custom common1.cns edit it directly there.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.