top of page

The Bird and the Tree - Development Post #4

  • Writer: Akash Oak
    Akash Oak
  • Sep 10, 2019
  • 1 min read


Hello!

This week we'll take a look at what progress has been made in the engine as well as in programming for The Tree and The Bird. The basics of movement have been started and here's the result. Since my programming knowledge is kinda weak, small steps at a time towards the project. :)

Anyways, here we go!

Movement



For coding the movement, since both of the character models will have different sizes the speed needed to be adjustable. Hence a script was created using a tutorial by Brackey's, adjusted for 3D to make a smooth movement. Here's the tutorial link - https://www.youtube.com/watch?v=dwcT-Dch0bA


Here's the code snippet -



Jumping



Only the bird can jump, as a result of his mobility. Since I wanted the bird to float too, I made changes in the code to make sure that the drag on bird increase to make his descent slow.

The code I'm using -



Camera



Since the camera is on two targets, not one, I made a script to follow both the players and make sure that the camera zooms in and out whenever the anyone of them goes away from another. I can manually control how much the camera can zoom out.


Next blog post will give some details about the level design, specifically how I am going to be making levels and implementing them into Unity.

Cheers!

Comments


bottom of page