hello to everyone.
I do not know anything about scripting, but I could add a script to a character, for walking, running jumping etc. but now I want to run the other movements that include the animation. In another script I put this to test.
function Update () {
if (Input.GetButtonDown("Fire1"))
animation.Play("punch1");
if (Input.GetButtonDown("Fire2"))
animation.Play("punch2");
if (Input.GetButtonDown("Fire3"))
animation.Play("punch3");
}
But although the movement starts, it fails to complete, returns to his idle pose immediately.
here the example EXAMPLE1 will see if you press the keys I,O,P in this example.
If I disable the script of the translational motions,it does the moves. as in this example EXAMPLE2
In another hand ,I would like to know how you can run a number of animations in series with a single button. as a string of hits. That is, if I press it once, run the animation number one, twice runs one and two and so on.
thanks in advance and forgive my bad English