Gamedev

Unity PowerUp pickup

Create a Sprite object with BoxCollider2D (set isTrigger true) and Rigidbody2D. Create a new Script, name it PowerUp. Whenever other object that has Hp script on it (Rigidbody2D + Collider2D) will collide with PowerUp object, hp will be increased by the amount specified in PowerUp object.

Unity PowerUp pickup Read More »