Friday, February 17, 2017

Day 11: Creating Collectible Objects

To create a collectible object, I first created a new cube and named it "Pick Up". Simple enough. I then unchecked the sphere to hide it.













To make it more interesting, I made it smaller (so it looks like it's floating), tilted it 45 degrees in each axis, and added a script to make it rotate and made it yellow.

Once I got the aesthetics out of the way, I made the pickup object into a 'prefab' by dragging it into a Prefab folder I made. This means I can edit the prefab and any duplicates of it in the scene will all be edited.

I then made a parent object to hold all the pickups in the scene, and dragged the pick up object into it.



















To duplicate the object, I pressed ctrl+D, and dragged the duplicate where I wanted it.

Tomorrow I will learn how to make the player pick them up when it touches them. I will also learn how to add a scoring system.

No comments:

Post a Comment