playMaker

Author Topic: NGUI + iTween  (Read 1721 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
NGUI + iTween
« on: December 05, 2013, 06:00:46 PM »
Hi,

I have a set of NGUI buttons they are 46units appart from each other on the x axis.
When clicked one of them, it disappears and all the items on the left moves by 46 unity to the right to fill the empty space. Pretty simple.

I tried iTween Move Add to shift the items by 46 units, but it seems to be another scale. when I move my item by 46 unity it will fly away out of the screen. 0.1 seems to be quite close to what I am expecting.
Do you know how I can find the right value ? what coordinate system is it ? Is it a matter of world to local coordinates ?
Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: NGUI + iTween
« Reply #1 on: December 09, 2013, 02:30:16 PM »
Hi,

 Avoid the problem completly, and simply use moveto and target the position of your other button.

bye,

 Jean