Forum rules - please read before posting.

Tank Controls Turn Sensitivity

Hello. This should be a pretty easy thing but I can't figure it out. I want to use tank controls for my character. However, the turn sensitivity is way too high. I press a turn key (like a or d) and the character spins so fast around like a top. I want him to turn at a reasonable speed so he is not impossible to control. It would also be really nice if he didn't turn at all unless also moving forward so he doesn't just spin in place.

Anyone know how to do this? Thanks

Comments

  • It should be controlled by the "Turn speed" in your Player Inspector.
  • Thanks. i knew there something ridiculously simple i was missing and i would feel like an idiot when I saw it.

    Any idea on the second thing? How to make him not turn unless moving?
  • edited December 2016
    It's not built in, but you could write a custom script that adjusts the Inspector value based on whether or not the player is moving or not.  Something like:

    if (AC.KickStarter.player.charState == CharState.Idle)
    {
      AC.KickStarter.player.turnSpeed = 0f; // Can't turn
    }
    else
    {
      AC.KickStarter.player.turnSpeed = 1f; // Can turn
    }

    Place that in the Update() function of a new C# script and add it to a GameObject in your scene.
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.