[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006] by dwinblood

View this thread on steempeak.com
· @dwinblood ·
$2.33
[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]
In this post we will begin creating the object to contain the characters.    We finished setting up the scripts so we can easily build terrain and maps in the future in the <a href="https://steemit.com/freeroguelike/@dwinblood/steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-005">previous post [005]</a>.   This tutorial series began with <a href="https://steemit.com/freeroguelike/@dwinblood/steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-001">post [001]</a>.

<img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmVLKWAaK6UPJyVGhsk2bJAyTVQu59iicsAMK2c4Axx15g/image.png"/>

<h1>Preparing For Characters</h1>

In the previous post I mentioned we were going to move onto setting things up to handle characters.   If you look at the Art folder you will notice there are many different folders to make these Dungeon Crawl CC0 characters customizable.

![](https://cdn.steemitimages.com/DQmdNBrX3dhkGbLVG43bi3Fdcq6fMhnqejqrpofxgahBL2e/image.png)

We want to support that.

![](https://cdn.steemitimages.com/DQmfYt2CQngB5KAJbBkzJJvNSAX9J1wiFL1hpPwdm5hRaYf/image.png)

Those are the base characters which I'll call Body in our game.   They have no clothing, hair, etc.   All the other folders consist of components that can be layered on top of or behind these base bodies.

For this reason we need to setup a prefab that has place holders for all of these body parts much like the ones we did for terrain.

Create and Empty object at position 0,0,0 and rename it ***CharacterPrefab***.

Create another empty object under that prefab.

![](https://cdn.steemitimages.com/DQmZR6zinvZ2dYW4yyH4fCTDoqHxQXRd5yWh77Ea52hMaim/image.png)

Click Add Component.

![](https://cdn.steemitimages.com/DQmVqQj2bigL2UmLsPagpDnVZHmyHwtZgLM2rnsumk3o1Qx/image.png)

Click on Rendering.

![](https://cdn.steemitimages.com/DQmW7ZHAmbDL6m3989iPd8tUnVCd7WJqzBogUouK3EULRY5/image.png)

Click on Sprite Renderer.

![](https://cdn.steemitimages.com/DQmXYbpYk4jm426zMShAVwFZ3S1BcGcXMizCD3EoGcATNpQ/image.png)

Right click on GameObject and Duplicate.

Repeat that process 11 more times.

Let's rename those from top to bottom as follows.

![](https://cdn.steemitimages.com/DQmWhRqR7PVWwA2SwLgCxUXEdrsncRtswqDqc5oWhFLsrUo/image.png)

We will want to set the sorting order for each sprite renderer.    Here are my initial settings for each.

![](https://cdn.steemitimages.com/DQmXARvcJtMmRro3tuBZ1sP8seayhrMDBBLv9w37oAJCCeJ/image.png)

![](https://cdn.steemitimages.com/DQmbnmNH6buT2YoPNLf9dnZ7ricvQay1c4qoD9LGGshVMXH/image.png)

![](https://cdn.steemitimages.com/DQmTWJNTqkXdxmrqxe3md2572MWeqZVN79BTs26g6eLEtkc/image.png)

![](https://cdn.steemitimages.com/DQmTX5kVJgj9XtmUQ9ktAz6Xmbfij2QC3CQUcnQjcFT5p3i/image.png)

![](https://cdn.steemitimages.com/DQmaiopj1h1RVkur8pjxMkMb8cnss4bJZwmAspcgrP1BFan/image.png)

![](https://cdn.steemitimages.com/DQmQyfFLkTpHQCToEvNWa6mJrpJyzHAXcxFSkXLpvi99yo8/image.png)

![](https://cdn.steemitimages.com/DQmWEQX9mhUznAvp2RbpQ48e3LZbtFsh2wMb9MtokyngBux/image.png)

![](https://cdn.steemitimages.com/DQmfTYxzNRYgGdJmk5ZsoNPR6PuacTSFPpbfoTj28jZ8oRM/image.png)

![](https://cdn.steemitimages.com/DQmaURx1rwobbF9Fsfe9QkEyEHyP2uzd1mhTSH3RixGKRe7/image.png)

![](https://cdn.steemitimages.com/DQmQNB45Vz1WquckTdxg2HDvgTMjyHHYrS6ha6XLtxns72r/image.png)

![](https://cdn.steemitimages.com/DQmUePvWNdoAkdPXW3tYfYWsVTiTSDtyjSuSv7b5tnPK9NT/image.png)

![](https://cdn.steemitimages.com/DQmXrKasSKit7smnuidr9tCGrCkqHx1cHmT6ZQ5RXsK1UaS/image.png)

![](https://cdn.steemitimages.com/DQmPVsSfM6fkBdZqobKDUF7FEtypVCS93TQ2exNe7hd555p/image.png)

Assign some sprites to the various slots if you want to see what it looks like.

Drag it to the Prefabs folder.

![](https://cdn.steemitimages.com/DQmXDYRDBAmcD8erSkVexnPRjSG6qvLkk7488pkgxphgC4f/image.png)

Open up the RLSprites script in Visual Studio.   We need to add some things to it.

![](https://cdn.steemitimages.com/DQmVu642cJuRcVWJTinzhtoFvBVWTr83qfDt1h55vHbKzhX/image.png)

![](https://cdn.steemitimages.com/DQmQTXm4PyvZCvHqWm1LfPwVaxCZ4GWY2N6ZuqC2fwnep8s/image.png)

We add places to store these specific sprites.   We also add a new string array for Character Type Definition, and Item Type Generation.

We'll define some character specific things on the character.

Items will enable us to specify what sprite an item should use if it is equipped.

We also add a CharacterPrefab object section.

Save that and rebuild it

We will define those in a later post.


<h1>What do these layers look like</h1>
I'll start with a base humanm figure.

![](https://cdn.steemitimages.com/DQmPYojeigXY8wWSc4nKS2oDobMx3WWY59z1DPR4hDe2NMD/image.png)

We now will add some hair.

![](https://cdn.steemitimages.com/DQmbeaXbm2ur9M2AYyVrhkMjBk5tEDg6Aez1sg6URQqoBcF/image.png)

Then a beard.

![](https://cdn.steemitimages.com/DQmbfW5mnwkEYZ197zNknNEaD4RcHFnAhJCfQ8UZ7DVpj8H/image.png)

Then the torso.

![](https://cdn.steemitimages.com/DQmNiMrRqKT7msB6pNE4WFTcetLjpSnWf3YEPRm5cv58M6D/image.png)

Hmmm... notice part of the hair and beard are obscured by the torso armor.   We want it on top.   Change the following sorting orders.

Hair 5, Beard 5, Helmet 6, and Helmet2 7.

![](https://cdn.steemitimages.com/DQmVM2JaNdYHihnE5xhzCt8HgJH3owcipMQjNoMeHLghXMi/image.png)

Add boots.

![](https://cdn.steemitimages.com/DQmbxxHvjmdEeCLDoS3LMjCgrkkGpfP8cWvgJWmy3AdWiEZ/image.png)

Add Cloak.

![](https://cdn.steemitimages.com/DQmdZNveRsmHLP3rVNadKQbNcsTs5S86LNze1L1ajbNeeAc/image.png)

Add Wings.

![](https://cdn.steemitimages.com/DQmPRpVKxZASqFPJTF153zHaYHE87dCansF9CavtURBU9gk/image.png)

Add Gloves.

![](https://cdn.steemitimages.com/DQmX81oYjo9bx93AcoLYMHkomrDDh34AwsobLwhSrwuCPgh/image.png)

Add HandRight.

![](https://cdn.steemitimages.com/DQmT1KDU4FKYmbbEWbjaF3FU7YcVqUGzpRHwAtAQi2VK3mB/image.png)

Add HandLeft.

![](https://cdn.steemitimages.com/DQmQBEBxoNsA1WWLaEjmen9dDWjX3DGtBg7JRq2EMnNnmQr/image.png)

Add Helmet.

<img src="https://i.imgur.com/627rzgt.png"/>

Add Helmet2 (*NOTE: This was created so horns and things of that nature could poke through helmets if desired*).

<img src="https://i.imgur.com/EP98DXg.png"/>

Add Trousers.

<img src="https://i.imgur.com/6etN5yz.png"/>

----

That concludes this specific post.

***If you like these tutorials and would like me to continue them please consider an up vote.***  Thank you.
properties (22)
post_id52,534,956
authordwinblood
permlinksteem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006
categoryfreeroguelike
json_metadata"{"tags": ["freeroguelike", "gamedev", "gaming", "art", "tutorial"], "format": "markdown", "image": ["https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmVLKWAaK6UPJyVGhsk2bJAyTVQu59iicsAMK2c4Axx15g/image.png"], "app": "steemit/0.1", "links": ["https://steemit.com/freeroguelike/@dwinblood/steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-005", "https://steemit.com/freeroguelike/@dwinblood/steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-001"]}"
created2018-06-10 23:59:54
last_update2018-06-10 23:59:54
depth0
children6
net_rshares0
last_payout2018-06-17 23:59:54
cashout_time1969-12-31 23:59:59
total_payout_value2.224 SBD
curator_payout_value0.104 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,328
author_reputation223,300,085,257,919
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@hrishekeshroy ·
You really know a lot that many of us are unknown
properties (22)
post_id52,535,838
authorhrishekeshroy
permlinkre-dwinblood-steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006-20180611t001023361z
categoryfreeroguelike
json_metadata"{"tags": ["freeroguelike"], "app": "steemit/0.1"}"
created2018-06-11 00:10:24
last_update2018-06-11 00:10:24
depth1
children0
net_rshares0
last_payout2018-06-18 00:10:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length49
author_reputation14,866,961,686
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@emtecks ·
$0.06
I just finished a few posts, covering some noteworthy game titles released in certain years and I'd love to see how this turn out (what is the inspiration behind it)! You mind if reference your game creating posts in my blog from time to time?
properties (22)
post_id52,574,219
authoremtecks
permlinkre-dwinblood-steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006-20180611t073442886z
categoryfreeroguelike
json_metadata"{"app": "steemit/0.1", "tags": ["freeroguelike"]}"
created2018-06-11 07:34:42
last_update2018-06-11 07:34:42
depth1
children1
net_rshares0
last_payout2018-06-18 07:34:42
cashout_time1969-12-31 23:59:59
total_payout_value0.046 SBD
curator_payout_value0.011 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length243
author_reputation655,641,849,417
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@dwinblood ·
I don't mind if you reference them, but not copy/paste them.    Inspiration was simply something I thought about doing almost two years ago when I was making some other tutorials and I just now got back around to it.
properties (22)
post_id52,628,756
authordwinblood
permlinkre-emtecks-re-dwinblood-steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006-20180611t160620265z
categoryfreeroguelike
json_metadata"{"tags": ["freeroguelike"], "app": "steemit/0.1"}"
created2018-06-11 16:06:21
last_update2018-06-11 16:06:21
depth2
children0
net_rshares0
last_payout2018-06-18 16:06:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length216
author_reputation223,300,085,257,919
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@thecastle ·
$0.06
It would be fun to do something like this in unreal 4.
properties (22)
post_id52,621,395
authorthecastle
permlinkre-dwinblood-steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006-20180611t150251145z
categoryfreeroguelike
json_metadata"{"app": "steemit/0.1", "tags": ["freeroguelike"]}"
created2018-06-11 15:02:51
last_update2018-06-11 15:02:51
depth1
children1
net_rshares0
last_payout2018-06-18 15:02:51
cashout_time1969-12-31 23:59:59
total_payout_value0.042 SBD
curator_payout_value0.013 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length54
author_reputation77,031,200,579,721
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@dwinblood ·
$0.10
Someone else can do unreal 4 if they want.   I don't have time to learn a new engine plus I own tens of thousands of dollars of assets for Unity so that is where I focus.  Hell I can even do it all with visual scripting since I own Bolt.    In this particular example I intend to use completely free materials though.   Since I am using the Dungeon Crawl CC0 sprites that I walk people through downloading in the first post, I don't see why people couldn't use Unreal 4 instead if they wanted to.  :)
properties (22)
post_id52,629,005
authordwinblood
permlinkre-thecastle-re-dwinblood-steem-rogue-like-developing-a-rogue-like-using-unity-and-free-assets-006-20180611t160826550z
categoryfreeroguelike
json_metadata"{"tags": ["freeroguelike"], "app": "steemit/0.1"}"
created2018-06-11 16:08:27
last_update2018-06-11 16:08:27
depth2
children0
net_rshares0
last_payout2018-06-18 16:08:27
cashout_time1969-12-31 23:59:59
total_payout_value0.095 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length500
author_reputation223,300,085,257,919
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @dwinblood! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x70/http://steemitboard.com/notifications/post4day.png)](http://steemitboard.com/@dwinblood) You published 4 posts in one day

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
post_id52,622,326
authorsteemitboard
permlinksteemitboard-notify-dwinblood-20180611t151111000z
categoryfreeroguelike
json_metadata"{"image": ["https://steemitboard.com/img/notify.png"]}"
created2018-06-11 15:11:09
last_update2018-06-11 15:11:09
depth1
children0
net_rshares0
last_payout2018-06-18 15:11:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length716
author_reputation38,705,954,145,809
root_title"[STEEM ROGUE LIKE]: Developing a Rogue Like using Unity and Free Assets [006]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000