Fluid animation through scripting.

Hello everyone, as you may know I am making a game called Blackout, and I would like the animations to be very fluent, to give the game a better feel and smoother look, I would like the anims similar to this : http://www.youtube.com/watch?v=apx-_Qa4zek&feature=mfu_in_order&list=UL what would you suggest I do? Do this through scripts? or some animated and some scripted? if so which ones? Also, how would I make it the play a walk animation while aiming down sights? Im not asking you all to write me out scripts I would just like the knowledge and help to give it a try myself to learn, Thank you in advance,

UPDATE :

I know what to do with animations, but how do I make it so that the gun and arms rotate / move in the direction to where the character is moving / turning?

-Divnity

Actually, all of the animations in this clip are done in a 3d program.

Having the following animations:
idle
walk
run
aim
walk aim
shoot small recoil
shoot big recoil

get those working where they are fluid by themselves and use Animation.CrossFade when swapping between animations. This makes the transition period smooth as well.

So then for the shooting and aiming, it is just one separate animation? Thanks :smile: I dont suppose you know how to make it so the gun rotates slower that the camera giving it that slow sort of effect do you? (if you want me to elaborate, so when he turns sometimes, the gun is in the middle of the screen and then it snaps to its normal position) Thank you for your help!

Hey everyone I am bumping, Please I really need help with this Look Rotation thing, My scripters are stumped, I want it so the gun rotates slower than the camera, (but to a certain point) - It is similar to a slow parent in blender, Please just give me an idea of how I would do it,

it is done via script… there is no rotation at all - only “transform.localPosition”…

I know it is via script, but how would I go about doing it,

by learning?
or you can pay someone, to wrote this script for you…

I’m only asking for a push in the right direction, How can I learn if I dont know where to start? Right?

your “right direction” will be => learn about:
Transform - http://unity3d.com/support/documentation/ScriptReference/Transform.html
Input - http://unity3d.com/support/documentation/ScriptReference/Input.html
Vector3 - http://unity3d.com/support/documentation/ScriptReference/Vector3.html
More about http://unity3d.com/support/documentation/ScriptReference/Vector3.Lerp.html
you can, or not - depends on your knowledge of scripting.

use this for aiming head/arms:

http://www.unifycommunity.com/wiki/index.php?title=HeadLookController

Thank you both very much :slight_smile:

you want to do exactly the same as what you do to the camera but at a slower or faster speed.

float xRot;
float yRot;

xRot = Input.GetAxis("Mouse Y") * (lookSpeed / 2.0f) * Time.deltaTime;
yRot = Input.GetAxis("Mouse X") * (lookSpeed / 2.0f) * Time.deltaTime;

gun.transform.Rotate(yRot, xRot, 0.0f);

UK rules… :smile: