Fine-tuning scale

Our Cucumber Man has a Transform that includes Scale values for X, Y, and Z. By default, these are all set to 1. We can easily change the size of our Cucumber Man by decreasing or increasing the scale values. With this approach, you can create copies of the Cucumber Man that are cucumber babies or cucumber giants. 

The following screenshot shows three copies of the Cucumber Man. Starting from the left and moving to the right, each Cucumber Man is larger than the last: 

Here is a look at the transform settings for each Cucumber Man in the preceding screenshot:

Transform Scale setting
Cucumber Man version
X
Y
Z

Cucumber Baby

0.5

.5

.5

Cucumber Man

1

1

1

Cucumber Giant

2

2

2

 

For our game, we will only have one Cucumber Man, and we want him to be larger than the beetles and smaller than the cherry trees. The default scale of one results in the Cucumber Man's height being ideal. This is evident by his relative size compared to the cherry trees, as indicated in the following screenshot:

In Chapter 8, Implementing our Non-Player Character, we will inspect the scale of our Cucumber Beetles and ensure they are appropriately scaled in relation to the size of our Cucumber Man.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset