Road TO Dev — Not all pickups are good!

Rob Smith
Jun 8, 2021

--

Objective: Create a negative pickup that alters player control.

Step 1: Create the pickup giving it the proper rigidbody and collider 2d resize it how you want.

Step 2: Setup the spawn manager to recognize it to spawn and add that number in the spawn routine for powerups.

Step 3: Attach the powerup script to the pickup and set the ID to match it inside the powerup script.

Step 4: Create the variable to control the on/off of this new effect.

Step 5: Create the method on the player that get’s triggered when hitting the powerup

Step 6: Create the effect.

Step 7: Create the cooldown to go back to normal controls.

--

--

Rob Smith
Rob Smith

Written by Rob Smith

Hi there! I am currently on the path to learn how to become a unity developer and will be documenting my journey as best as I can here. Thanks for looking!

No responses yet