Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity 5.x 2D Game Development Blueprints

You're reading from   Unity 5.x 2D Game Development Blueprints Explore the features of Unity 5 for 2D game development by building three amazing game projects

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781784393106
Length 252 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Francesco Sapio Francesco Sapio
Author Profile Icon Francesco Sapio
Francesco Sapio
Abdelrahman Elsayegh Abdelrahman Elsayegh
Author Profile Icon Abdelrahman Elsayegh
Abdelrahman Elsayegh
Arrow right icon
View More author details
Toc

Dressing up our hero


To make our character more interesting, let's add some items to the player. Drag the following sprites from the Project panel onto the Player object:

  • roguelikeChar_transparent6_0, rename it to Hair and set the Order in Layer variable to 11

  • roguelikeChar_transparent3_0, rename it to Top and set the Order in Layer variable to 12

  • roguelikeChar_transparent2_0, rename it to Bottoms and set the Order in Layer variable to 11

  • roguelikeChar_transparent5_0, rename it to Weapon and set the Order in Layer variable to 13

  • roguelikeChar_transparent4_0, rename it to Shield and set the Order in Layer variable to 14

  • roguelikeChar_transparent7_8, rename it to Helmet and set the Order in Layer variable to 12

Reset the Rect Transform for all of the preceding objects, and as a result, our hero should be cool, as below:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime