Build Crossy Road Replica Part-6

 Next we will be adding vehicles to multiple lanes of road , before that you might seen that our vehicle collides with the player and outputs "Hit" even if they are not on the same lane , this is because one of our collider is little bit big compared to the original shape. for me it was the...

Build Crossy Road Replica Part-5

 Now we need to make collision between our character and vehicle . We use colliders for that. these are like walls.So it dosen't allow any other object with collider component to pass through it instead it will collide.for more info : https://docs.unity3d.com/Manual/CollidersOverview.htmlWe need to add collider to both our vehicle and game character for collision between them.So First select anyone...

Build Crossy Road Replica Part-4

 In this session we are going to add vehicles,for that first drag any vehicle 3d file from the project tab.next we need to make the vehicle move for that a single line of code is enough. So create a script with name vehicle :this is the code you have to add this.GetComponent<Rigidbody>().velocity= new Vector3(0,0,1f);what this does it that during...

Build Crossy Road Replica Part-3

 Next step is to make the camera follow our chicken.To do this we use a simple script, you can find it from this video:   the code for the script :using UnityEngine;public class camfollow : MonoBehaviour{    public Transform target;    public float smoothSpeed = 0.125f;    public Vector3 offset;    void FixedUpdate ()    {        Vector3 desiredPosition = target.position + offset;        Vector3 smoothedPosition = Vector3.Lerp(transform.position, desiredPosition, smoothSpeed);        transform.position = smoothedPosition;            }}if you notice you can see that the last line mentioned in the video has been remove . Its because , in our game rotation is not so important.Also...

Build Crossy Road Replica Part-2

 Note that i doesn't own any copyright over crossy road or on any of the materials related to it. So even though i created the assets these doesn't belong to me. If you are publishing this game ,It is your responsibility to get appropriate permission from the corresponding developers. If you are visiting this page using phone, it...

Build Crossy Road Replica Part-1

Note that i doesn't own any copyright over crossy road or on any of the materials related to it. So even though i created the assets these doesn't belong to me. If you are publishing this game ,It is your responsibility to get appropriate permission from the corresponding developers.If you are visiting this page using phone, it is...

Page 1 of 212Next
Powered by Blogger.