How to prevent.

Started by ZayOsiris Gaming, June 24, 2010, 07:02:19 AM

Previous topic - Next topic

ZayOsiris Gaming

How do i prevent a character from crouching? Its not something i've ever done before. :P

Ricepigeon

Override state 11 (or whatever the crouch state number is, I cant remember offhand)

ZayOsiris Gaming

Would i put it in [statedef, 2]?

Shamrock

No. To create an overide you just need to and the crouch state number to your character which would overide the state in Common in the data folder.

Unless you are just talking about for a certain move. As in you don't want the character to suddenly go to crouch if you are performing a move that requires you to press down. If that is the case you just set the triggers in cmd to !

Luis Alejandro

Quote from: Shamrock on June 24, 2010, 08:28:56 AM
No. To create an overide you just need to and the crouch state number to your character which would overide the state in Common in the data folder.
wut

Shamrock

Meh you know what I meant.

Ricepigeon

Quote from: Shamrock on June 24, 2010, 08:28:56 AM
No. To create an overide you just need to and the crouch state number to your character which would overide the state in Common in the data folder.

In layman's terms, code the state as you normally would, except use the same stateno as the crouching state. This overrides the normal behavior of the crouching state. In case anyone didnt get it.

Seravy

As it has been said above. Basically you need to add this to your character :

;---------------------------------------------------------------------------
; Stand to Crouch
[Statedef 10]
type    = S
physics = S
anim = 0

[State 10] ; Immediately go back to standing
Type=ChangeState
Trigger1=1
value=0
ctrl=1