Home || Previous || Next

Using James Model and texture.

New Project

Screen Shot 2015-11-26 at 10.13.37.png

Add files into assets folders

Screen Shot 2015-11-26 at 10.15.18.png

Screen Shot 2015-11-26 at 10.16.10.png

Put these files into folders Textures and SharkMan

Screen Shot 2015-11-26 at 10.18.55.png

Check that the model has been imported correctly, scale factor and textures are right.

Screen Shot 2015-11-26 at 10.20.02.png

Check the Rig, this needs to be put as legacy as the animation was made in frames after one another.

Screen Shot 2015-11-26 at 10.21.55.png

The animation has been made in one long file, you can see this in the animation settings, this needs to be cut into different sections.

Screen Shot 2015-11-26 at 10.23.31.png

Shows you the different frames of the animation:

Screen Shot 2015-11-26 at 10.24.46.png

You can change the tolerances, if animation isn’t quiet right

Screen Shot 2015-11-26 at 10.27.28.png

Add more clips and add names

Screen Shot 2015-11-26 at 10.28.15.png

For Idel animation cut the clip, this should be looped

Screen Shot 2015-11-26 at 10.57.20.png

Do this for Swim and Transition (without loop) remember to apply (these needs to be in the right order…

Screen Shot 2015-11-26 at 10.37.41.png

Add model onto screen

Screen Shot 2015-11-26 at 10.35.26.png

Create C Sharp File – Test

Screen Shot 2015-11-26 at 10.39.21.png

Add public Animation anim

And add GetComponent under Start

Screen Shot 2015-11-26 at 10.48.26.png

Create new function TestAnim, which sets the animation depending on input

Screen Shot 2015-11-26 at 10.48.32.png

In void run the function

Screen Shot 2015-11-26 at 10.48.44.png

 

Make a Shark Man Controller by creating an Empty

Screen Shot 2015-11-26 at 10.52.16.png

And Parent this to SharkMan

Screen Shot 2015-11-26 at 10.52.49.png

Then in the code add GameObject.Find(“”).

Screen Shot 2015-11-26 at 10.55.31.png

To make move add a transform.Translate under the test anim.

Screen Shot 2015-11-26 at 11.00.42.png

Compete Code

Screen Shot 2015-11-26 at 11.05.35.png

In the inspector make sure Anim is linked

Screen Shot 2015-11-26 at 11.05.15.png

HE swims backwards so needs to be flipped 180

Screen Shot 2015-11-26 at 11.07.10.png

 

Home || Previous || Next

 

 

 

 

 

 

Advertisements