Forum rules - please read before posting.

Sliding after running

I am trying to achieve the effect of after the player running, it will sliding and cannot be controlled until decelerate to stop.

I somehow did it by setting these when the charstate is deceleration:
KickStarter.player.charState = CharState.Decelerate;
GetComponent<Player> ().motionControl = MotionControl.JustTurning;

But it seems the deceleration rate is unstable. I suspect the player deceleration duration and trigger time is not controlled well. Is that during motionControl = MotionControl.JustTurning, the player deceleration effect won't kick into effect?

Comments

  • edited November 2018
    Turned out it was actually some logic error in my script. Please delete this thread if it is better. Thanks.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.