Game Development Reference
In-Depth Information
Let's keep this organized. Create a new empty GameObject and name it Platform
Container . In the Hierarchy tab, drag-and-drop all of the platforms into this new
object, making them children of it, as shown in the following screenshot:
All this does is keep things a bit cleaner and easier to work with.
Let's get dangerous
Let's add one more additional feature to our jumping, walking, dying player—the
ability to fire a weapon. Yup! It's time to make the player dangerous. If you feel the
need to apply a lead apron and a hard hat to your person, now would be the time
to do it:
1.
Dig up your downloaded assets (available at http://www.PacktPub.com/
support —register to have the files e-mailed directly to you) again and
import the image map titled PlayerBullet.png , which should look like the
following screenshot. Use the same image import settings you've been using
for all the sprites:
2.
Drag-and-drop the PlayerBullet sprite just like you did with previous
sprites into the Hierarchy tab.
 
Search WWH ::




Custom Search