Tutorial 2: 3D Models In Unity
Time to import Purple into unity
Why is Purple not purple? After some googling, I found this useful post:
https://forum.unity.com/threads/colors-ruined-upon-importing.571795/
A user, years after the original post, gave me a solution: In the texture settings, I had to change the filter mode from Bilinear to Point (no filter), and set compression to none. Apparently, this is common issue with simplistic textures (like the 8x8 texture file I am using).
Perfect.
After importing Purple, I spent a while getting the animations working using an Animator Controller. Following the content of the tutorial, I wrote scripts to cause the animations to play at different times, such as wave playing on spacebar press.
After completing this step, I continued on through the tutorial and added movement controls. I could move Purple around with the arrow keys, but the running animation needed to be played on forward movement. I decided the best way to do this was to make the animation play when the up arrow was pressed. However, when Purple moved forward, the animation would only play once - this is because it would immediately return to the idle animation. I fixed this by adding another Parameter and condition called Idle, which would be met when the up arrow key was released. I also unchecked Has Exit Time on each animation transition, so that it would not wait for the previous animation to complete before moving on to the next.
Finally, I made the door and invisible boxcollider trigger with its script as per the tutorial. I also made everything green so that Purple's white hair wouldn't blend in too much, and attached the camera to Purple.
The final result:
UTAS KIT207 Portfolio
More posts
- Self Study 4: Game IdeasAug 09, 2022
- Self Study 2: Bones, Rigging & AnimationAug 08, 2022
- Tutorial 1: Barrels!Jul 20, 2022
- Module 1 Devlog: Cannon and BarrelJul 19, 2022
Leave a comment
Log in with itch.io to leave a comment.