Friday 27 July 2012

Effects almost done, left compiling with group members

Firstly, i finished making the rain but i need to adjust the timing so that it will stops at 1mins , as the game ends at 2 mins. as it will get dark at 1min.


 I finished making the coins to glow, by adding a halo around it with a value of 0.59 and
previously, i had a problem as the texture of the coin was covered by the halo and cant be seen.
But Mr. Ron solve it by changing the material to self-illuminate


 I managed to complete creating the blood particle effect and also i want to do a blood splatter on to the screen when the character was shot.

texture:





 Lastly, the auto shooting script of the tank is done , as Mr. Ron helped me to solve it

    public GameObject fire;
   
    public float force = 1000;
   

    // Update is called once per frame
    void Update ()
   
    {
   
        if((Time.frameCount % 150)== 1)
           
        {
           
            //Make copy
            GameObject temp = (GameObject) Instantiate(fire,this.transform.position,Quaternion.identity);
           
            temp.rigidbody.AddForce(transform.forward *force);
           
            Destroy(temp,2);
           
        }
   
    }
}

No comments:

Post a Comment