How to make a 2 D RPG in Unity 3 D 9. Fixing Player Movement, cheat sencom
In this tutorial, we will fix the drifting issue that we had with our player when we wrote the movement script way back in the first tutorial. We will discuss the Is Kinematic boolean variable that is on Rigidbody objects and also we will learn briefly how to make several if, then statements into one massive if, then statement. public Rigidbody player; public float moveSpeed 0f; bool moving; void Start () moving false; void Update () if (moving) Move ();
|
|