Unity Learn home
View Tutorial Content

Write a script for character movement

Tutorial
Beginner
+10 XP
1 Hour
(11133)
Overview
Live
Groups
Summary
Now that you’ve spent time developing the player character for your game, you’re ready to create a custom script to control its movement.
In this tutorial, you’ll:
  • Create a new script Asset in Unity
  • Explore the default script that is produced
  • Make a vector which can be used to change the character’s position
  • Apply vertical and horizontal movement and rotation to your character
  • Check that your changes work with Unity’s physics system
When you’ve finished, John Lemon will be ready to creep around a haunted house!
Select your Unity version
Last updated: October 14, 2021
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
Language
English
Write a script for character movement