Search Unity

iTween animation framework for Unity ready for use!

Discussion in 'Scripting' started by pixelplacement1, Mar 24, 2010.

  1. rizqiaws

    rizqiaws

    Joined:
    Sep 5, 2014
    Posts:
    8
    why the iTween script always increases in an object like this?
    itween.JPG

    please help me to solve this problem :(
     
  2. AdeelAbbas

    AdeelAbbas

    Joined:
    Jul 18, 2014
    Posts:
    22
    Hi Everyone
    Can someone please tell me why my gameobject not move on slopes when I use itween.putOnPath() function.Below image shows my slope.
     

    Attached Files:

  3. alarm656

    alarm656

    Joined:
    Jul 6, 2013
    Posts:
    111
    I use Coroutines to get worked all Tweens

    Code (CSharp):
    1. if (Value == 3)
    2.                             {
    3.                                 PlayerPrefs.SetInt ("Puzzle", 1);
    4.   iTween.MoveTo(this.gameObject, iTween.Hash("y", 2.6f, "easeType", "easeInSine", "loopType", "none", "delay", .4));
    5.   iTween.MoveTo(CTTMove, iTween.Hash("z", 3.3f, "easeType", "easeInSine", "loopType", "none", "delay", .4));
    6.   iTween.ValueTo(this.gameObject, iTween.Hash("time", 1f, "delay", 0.35f, "from", 60, "to", 32, "onupdate", "HandleZoomUpdate"));
    7.  iTween.RotateTo (this.gameObject, iTween.Hash ("x", 38, "easeType", "easeOutSine", "loopType", "none", "delay", .1));
    8.  
    9.                                 StartCoroutine (RotateY());
    10.                             }
    11.  
    12.  
    13.  
    14. yield return new WaitForSeconds (1.0f);
    15.         if (PlayerPrefs.GetInt ("Puzzle") == 1)
    16.         {
    17.  iTween.RotateTo (this.gameObject, iTween.Hash ("y", 60, "easeType", "easeInSine", "onupdate", "none", "delay", .2));
    18.  
    19. iTween.MoveTo(CTTMove, iTween.Hash("x", 2.8f, "easeType", "easeInSine", "loopType", "none", "delay", .4));
    20.         }