x


iTween Punch too Punchy

In my project I am using the punch class to animate the sequence that the computer is showing that the player needs to mimic. There is only one problem, the punch is too "punchy". Essentially while it is recovering from the first punch, if it is punched again (as if the sequence was 1-1-2, it would only look like 1-2 because the second "1" is absorbed by the bounce of the first one. Is there a way to remedy this without using two MoveTo commands?

Thanks in advance!

using UnityEngine;
using System.Collections;

public class SequenceNode : MonoBehaviour {

public void Bounce () {
Debug.Log("Bouncing"+" node");
iTween.PunchPosition(gameObject,iTween.Hash("y",-1,"time",1));
  }
}
more ▼

asked May 17 '12 at 01:28 AM

mister.keith gravatar image

mister.keith
79 8 11 11

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I realized that if you reduce the length of the animation to about .75 or .5 it reduces to "bleeding into another animation on the same game object. Still incase anyone has this question, they can have the answer that I figured out!

more ▼

answered May 21 '12 at 04:11 AM

mister.keith gravatar image

mister.keith
79 8 11 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3802
x426
x117
x11

asked: May 17 '12 at 01:28 AM

Seen: 543 times

Last Updated: May 21 '12 at 04:11 AM