Join Jesse Freeman for an in-depth discussion in this video Exploding the player, part of Unity 4: 2D Essential Training.
…So, at this point, our Explode script isn't very dramatic.…What we're going to do is add a bunch of body parts,…so when the player hits a spike, he explodes into little pieces.…To get started, we're going to open up the Artwork folder, go into our sprites, and…we'll need to drag the body-part-sprites into the Resources folder.…From there, let's open up the body parts and drag a single one into the scene.…Now, let's attach our Random Sprite script,…and we're going to name it body part sprites.…
From here, we're going to add a Circle Collider,…and we're going to change its radius to 0.12.…We also want to add the Player Bounce material to it.…And now, let's add Rigidbody 2D for gravity.…Now, if we run this, we'll see that the body part…falls, and we get different types of body parts each time.…From here, let's go into our scripts, and create a new C# script.…
We're going to call this BodyPart.…And, we'll open this up in MonoDevelop.…Now, let's add a few properties.…So here, we're simply getting a reference to the sprite's renderer.…
- 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 52m 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.