YesNoOk
avatar

How to disable movement during grapple state? (Read 395 times)

Started by F&F, June 07, 2008, 07:07:31 am
Share this topic:

F&F

How to disable movement during grapple state?
#1  June 07, 2008, 07:07:31 am
I've been trying to figure out how to stop my character from being able to walk, jump etc whilst in a clinch state. Is there a way to ignore the direction being held or disable walking whilst attacking during this state?

Here's what I have so far:

Clinch
Spoiler, click to toggle visibilty

An attack during clinch state
Spoiler, click to toggle visibilty

Also - what would be the easiest way to perform this type of thing:

During clinch state
  • press "a" to knee, after 1.5 seconds of no input both players return to state 0
  • press "a" again to kick, after 1.5 secs... " "
  • press "a" yet again for finish, after 1.5 secs... " "


 
Re: How to disable movement during grapple state?
#2  June 07, 2008, 07:27:40 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
[State 802, CtrlSet]
type = CtrlSet
trigger1 = command = "a" || command = "b" || command = "c" && ctrl = 0
trigger2 = command = "x" || command = "y" || command = "z" && ctrl = 0
value = 1
Why are you returning control?

Create a special knee state, and have those commands send him to it, then back to the hold state. Or set up another changestate in your CMD that allows it. Granting control is a silly way to do that.


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.

F&F

Re: How to disable movement during grapple state?
#3  June 07, 2008, 08:23:26 am
Why are you returning control?

Create a special knee state, and have those commands send him to it, then back to the hold state. Or set up another changestate in your CMD that allows it. Granting control is a silly way to do that.

Yeah I realise that now - I feel quite silly  :D

I'm not sure if this is the sort of thing you meant (sorry for the noobness, just not that bright!)

I replaced
Quote
[State 802, CtrlSet]
type = CtrlSet
trigger1 = command = "a" || command = "b" || command = "c" && ctrl = 0
trigger2 = command = "x" || command = "y" || command = "z" && ctrl = 0
value = 1
with
Quote
[State 802, 3]
type = ChangeState
trigger1 = command = "a"
value = 235
ctrl = 0
My char now attacks and returns to grapple state

Did you mean to set it up this way? 
How can I limit the amount of attacks? (Only allowed to hit 3 times then return to state 0)

Thank you for your help.
Re: How to disable movement during grapple state?
#4  June 07, 2008, 08:35:14 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
To limit, you'll need a variable counter.

Keep it to the grapple state. Set to 0 when you enter it if var(blah) >= 3 and time = 0

Each time you press A use a varadd to increase it by 1

Let the 235 state drop out at the end of the animation if var(blah) is >= 3


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.