Now you need to code the actual movement.
This script toggles the animator.speed between zero and one as you’ll see later. The animator’s speed is set to zero in Awake so the character’s animation is paused in the beginning.
Currently, you can’t move the character, so that’s what you’ll work on next. The werewolf’s animations were included so you can focus on the core implementation. Notice the werewolf character animates on its own. Click the close button at the top right to hide it. Click Play and you’ll see a text overlay. Now, navigate to RW/Scenes and open Main. Switch to Game View inside Unity Editor and use the dropdown to set the aspect ratio to 4:3. Sprites contains all the pixel art for the project.Scenes contains the main scene with which you’ll work.Resources has font files and a single audio file for ambience.Animations contains pre-made animations and the animator for the main character.Open Assets/RW and find the following directories: The project contains some folders to help you get started.
Open Unity, extract the zip file and open the starter project.
In addition, this tutorial assumes you’re using Unity 2020.1 or newer and C# 7.ĭownload the project materials by clicking the Download Materials button at the top or bottom of this tutorial. Note: This tutorial assumes you have some experience with Unity and an intermediate knowledge of C#.