ACTIVITY 4
In this blog I will show you how to increase and decrease the score and I will show you every component and script in UNITY
In the player there are total of 4 component Box Collider2D, RigidBodt2D, Movement and PlayerScore. Box Collider is for Physical collision of the object, RigidBody allows object to react real-time physics for the movement it is for the movement of the player WASD to move and PlayerScore Script is to manage the score of the other object that touch in the player
This is the component of points, there are only 1 component and it is Circle Collider 2D. This object will get destroyed when the player touch it and the score will count.
There are 4 component RigidBody2D, BoxCollider2D, Movement Script for automatic movement and Circle Collider 2D for when it trigger the object will get destroyed
This is the Script of the Player Score when the object is touch it will destroyed and the score will count to 1 and when the thief object touch it will minus 1.
This is the VIDEO of my ACTIVITY 4





No comments:
Post a Comment