Sunday, 25 February 2018

Friday, 23 February 2018

Unity 2D Android Ball Game Tutorial ( fingerTouch swipe Control)

Random tiles Generation in Unity 2d game at runtime

 Watch Video on youtube

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TilesGenerator : MonoBehaviour
{
    private Camera mainCam;
    public GameObject Player;
    public GameObject[] Tiles;
    float spawnY;
    // Use this for initialization
    void Start () {
        mainCam = Camera.main;
        spawnY = mainCam.transform.position.y + 3.0f;
    }
   
    // Update is called once per frame
    void Update ()
    {
        if (mainCam.transform.position.y < Player.transform.position.y)
        {
            Vector3 targetPos = new Vector3
                (
                    mainCam.transform.position.x,
                    Player.transform.position.y,
                    mainCam.transform.position.z
                );

           mainCam.transform.position = Vector3.Lerp
                (
                    mainCam.transform.position,
                    targetPos,
                    0.5f
                );
        } //endif

        if (mainCam.transform.position.y > spawnY)
        {
            spawnY += Random.Range(3,4.5f);
            float spawnX = Random.Range(-5f,5f);
            SpawnTile(new Vector3(spawnX, spawnY));
        }
    }

    void SpawnTile(Vector3 pos)
    {
        pos.z = -0.99f;
        int RandomTile = Random.Range(0, Tiles.Length - 1);
        Instantiate(Tiles[RandomTile],pos,Tiles[RandomTile].transform.rotation);
    }
}


Unity Move Game Object With Finger swipe

Watch Video Tutorial On Youtube

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Ball : MonoBehaviour
{
 private Rigidbody2D ball;
    public float BallSpeed;
    public float turnSpeen = 1;
 public float smoothTime;

    public GameObject Lose;
 Vector3 vel;
 // Use this for initialization
 void Start () {
        Lose.SetActive(false);

        ball = GetComponent<Rigidbody2D> ();
 }
 
 
 void FixedUpdate()
    {// 
        ball.velocity = new Vector2 (0, 1*BallSpeed);

  Vector3 pos =  Camera.main.ScreenToWorldPoint(Input.mousePosition);

        transform.position = Vector3.SmoothDamp (
                transform.position,
                new Vector3(pos.x, transform.position.y, transform.position.z),
                ref vel, 
                smoothTime
                );

  
 }

    void OnCollisionEnter2D(Collision2D col)
    {
        Lose.SetActive(true);
        print(col.gameObject.name);
    }
}

Tuesday, 13 February 2018

C# Tutorials For Beginners in Hindi Urdu (Variables 01)

C# Tutorials in Hindi For Beginners (download And Install VisualStudio)



This tutorial has been prepared for the beginners to help them understand basic C# programming in Hindi Urdu.
C sharp is a high level Object Oriented Language and is widely used to Develop Desktop ,WEB ,3D games and
Cross platform applications .it is very powerfull language and very easy to learn as compared to php and java.
we will use visual studio to develop console and winforms apps with c#.
Best c# tutorials

Sunday, 11 February 2018

Unity3d WhatsApp Group For Discussion



Group Link
https://chat.whatsapp.com/9qAQ373cPryFwgtvtl8b8q

Unity3D WhatsApp Group For Discussion

Join WhatsApp Group And share Your Question And Get Instant Help On Whatsapp
click on the link Below To join.

WhatsApp Group
https://chat.whatsapp.com/9qAQ373cPryFwgtvtl8b8q

YouTube
https://youtube.com/c/fastsolution

Sunday, 4 February 2018

Unity3d - FPS shooter NavMesh Obstacle [08]



Nav Mesh Obstacle

The Nav Mesh Obstacle component allows you to describe moving obstacles that Nav Mesh Agents should avoid while navigating the world (for example, barrels or crates controlled by the physics system). While the obstacle is moving, the Nav Mesh Agents do their best to avoid it. When the obstacle is stationary, it carves a hole in the NavMesh.

Unity 3d tutorial on fps shooting game in unity in Hindi and Urdu .
Making a shooter in Unity is easy just follow the Tutorial.
in this tutorial we are going to create a Enemy in shooting game we will use Nav mesh Agent and make our enemy attack player.

- watch all video in playlist
WWW.YouTube.com/c/fastsolution

- Unity3D
https://WWW.Unity3d.com

Making A FPS Game in Unity Hindi / Urdu[07]

Saturday, 3 February 2018

Unity 3D - FPS Shooting Game Tutorial in Hindi / Urdu [ 06 ]




Unity 3d tutorial on fps shooting game
in unity in Hindi and Urdu .
Making a shooter in Unity is easy just follow the Tutorial.
in this tutorial we are going to create a
Enemy in shooting game we will use Nav mesh Agent and make
our enemy attack player.

- watch all video in playlist
WWW.YouTube.com/c/fastsolution

- Unity3D
https://WWW.Unity3d.com