Showing posts with label unity begginers tutorials in hindi. Show all posts
Showing posts with label unity begginers tutorials in hindi. Show all posts

Monday, 16 October 2017

Unity 2D Infinite Background Scrolling Simplest Way

Watch Video Tutorial
Code for Infinite Background Scrolling IN Unity 2d game.

using UnityEngine;
using System.Collections;
 
public class Scroll : MonoBehaviour
{
 
    public float backGroundSize;
 
    private Transform cameraTransform;
    public Transform[] layers;
 
    private float viewZone = 0;
    private int leftIndex;
    private int rightIndex;
 
    private void Start()
    {
        cameraTransform = Camera.main.transform;   
 
        leftIndex = 0;
        rightIndex = layers.Length - 1;
    }
 
    void Update()
    {
        if (cameraTransform.position.< 
            (layers[leftIndex].transform.position.+ viewZone))
            ScrollLeft();
 
        if (cameraTransform.position.> 
            (layers[rightIndex].transform.position.- viewZone))
            ScrollRight();
    }
 
    private void ScrollLeft()
    {    
        layers[rightIndex].position = new 
           Vector3
           (1f * (layers[leftIndex].position.- backGroundSize), 0f0f);
        leftIndex = rightIndex;
        rightIndex--;
        if (rightIndex < 0)
            rightIndex = layers.Length - 1;
    }
    private void ScrollRight()
    {   
        layers[leftIndex].position = 
            new Vector3
            (1f * (layers[leftIndex].position.+ backGroundSize), 0f10f);
        rightIndex = leftIndex;
        leftIndex++;
        if (leftIndex == layers.Length)
            leftIndex = 0;
    }
}

Sunday, 30 April 2017

Unity Beginners tutorial in Urdu [03]

Tutorial No 3


Welcome to unity 3_D video tutorial series in Urdu .

(1) Duration Of Course : 90 MINUTES
(2)Level : Beginners
(3)Total videos :14

these tutorials are created with Unity 3d personnel edition V 5.3.5.






Unity3d Tutorials In Hindi -Urdu [ 02 ]


TUTORIAL NO. 2

Unity3d Tutorials in Urd / Hindi

01 

TUTORIAL NO 1.

Course Introduction

(1) Duration Of Course : 90 MINUTES
(2)Level : Beginners
(3)Total videos :14
these tutorials are created with Unity personnel edition V 5.3.5

REQUIREMENTS:
Basic Programming Skills of Any Object Oriented Language are Required to take this course .This is a very simple course and all the steps are Explained .

Recommendations:
Watch this Course in HD quality.
Go step by Step and follow each step on your computer.
In case of any Questions Write in Comments.