Tutorial 2 Pt2
KIT207 Portfolio » Devlog
Walk
For the walking animation the goal was to activate it whenever the W key is held down. To start with code called "MyThirdPersonController" was made. As seen below this code uses transform.rotate and SimpleMove in combination with rotateSpeed and Speed set as Public Floats to control the movement and rotation of the character as the W, A, S, D keys are pressed.
This code automatically adds a Character Controller Component when added to the character object as it is put as a requirement on line 4, this component is essential fro using Simple Move.
The radius of the Character controller was modified to comfortably encompass the character object.
KIT207 Portfolio
Status | Released |
Author | d.darius.s |
More posts
- Game IdeasAug 09, 2022
- Tutorial 2 Pt3Jul 27, 2022
- Tutorial 2 Pt1Jul 27, 2022
- Tutorial 1Jul 20, 2022
- Self Study 1Jul 19, 2022
Leave a comment
Log in with itch.io to leave a comment.