Join Jesse Freeman for an in-depth discussion in this video Creating collectable objects, part of Unity 4: 2D Essential Training.
…So now we're ready to build items that the player can pick up.…Let's create a new scene and we're going to call this scene collectible staging.…Make sure that we save it in our scenes folder and we're going to drag our…test platform pre fab and our player pre fab into the scene, and hit Save.…Let's go into our Artwork > Sprite-sheets.…Zoom in a little, and take a look now at our crystals.…We're going to drag the first crystal onto the scene, and rename this to Crystal.…
From here, we're going to add a box collider 2D and set it to trigger.…What this tells the engine is that this object isn't solid but in fact…is looking for when another collider enters…its space and it will call trigger method.…To see how this works, we're going to add a…script that allow us to capture the trigger event.…Let's go into our scripts folder and create a new C# script called collectible.…We'll open this up and start adding some code.…
In order to capture the trigger event, we'll need…to create a new method called on trigger enter 2D.…
- Installing Unity
- Creating a new project
- Making scripts in Unity with C#
- Working with 2D artwork
- Creating animations
- Creating and moving players
- Adding collisions
- Creating an alien enemy
- Extending Unity with gizmos
- Creating a simple tile map
- Switching between levels
- Publishing your game
Skill Level Intermediate
Unity 3D: 3.5 Essential Trainingwith Sue Blackman10h 51m Beginner
Animating for Unity 3D in 3ds Maxwith Adam Crespi1h 19m Intermediate
1. Getting Started with Unity
2. Working with Sprites
3. Creating a Player
4. Interactive Objects
5. Aliens and AI
6. Making a Level
7. Working with Sound
8. Managing Scenes
9. Publishing Basics
Publishing overview3m 36s
Next steps1m 9s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.