Write a script for character movement

Tutorial

·

Beginner

·

+10XP

·

60 mins

·

(6130)

Unity Technologies

Write a script for character movement

1. The Player Character Continued

2. Create your First Script (PlayerMovement)

3. Create variables for the Horizontal and Vertical axes

4. How Did You Create That Variable?

5. Make a Vector

6. Set the Values for your Variable

7. Set up the Animator component

8. Create a variable to store a reference to the Animator component

9. Get a reference to the Animator component

10. Set up the reference to the Animator component

11. Create a Rotation for Your Character

12. Adjust the turnSpeed variable

13. Apply Movement and Rotation to your Character

14. Movement

15. Rotation

16. Change your Update Method

17. Test your Changes

18. Adjust your Game View Settings

19. Summary

Complete this tutorial