Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Unreal Engine Game Development Blueprints

You're reading from   Unreal Engine Game Development Blueprints Discover all the secrets of Unreal Engine and create seven fully functional games with the help of step-by-step instructions

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher Packt
ISBN-13 9781784397777
Length 352 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nicola Valcasara Nicola Valcasara
Author Profile Icon Nicola Valcasara
Nicola Valcasara
Arrow right icon
View More author details
Toc

Collectables


Create a new Blueprint class and call it BP_Collectable. We will use a sphere static mesh as a collectable in this game, we will add an aura around it for it to be easily localized by the player and add some fancy particles that go up in the aura.

First, simply add a Static Mesh in the components, set it to be a Sphere Mesh and replace it with the default root component. This will be the item that receives collisions by the player, therefore, set the collision of the mesh as OverlapAll. All the further components need to be set as NoCollision.

Add another Static Mesh to the root one, set it as Cylinder mesh and change its z scale to a higher number. This will be the aura of the object, therefore, it should surround the sphere, starting just under it and going up as much as it can.

Materials

We now create two materials for the sphere and the cylinder. The cylinder will be a simple translucent material, you can use the one that we used for the ghost or recreate another on your own...

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 $19.99/month. Cancel anytime