Hello Guest

Author Topic: Tk2dsprite changing transform automatically  (Read 4745 times)

vikas4goyal

  • Newbie
  • *
  • Posts: 3
    • View Profile
Tk2dsprite changing transform automatically
« on: August 11, 2013, 01:45:27 pm »
if i add one tk2dsprite there is no problem but if i create a duplicate of it then both sprite's transformation (position,rotation) change continuously. please help  :'( :'(

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dsprite changing transform automatically
« Reply #1 on: August 11, 2013, 05:39:01 pm »
How does it change continuously? I've never seen or heard of this issue at all - a video or a zip of the project could help explain your problem.

You've not given me enough information to answer this -
1. What version of Unity
2. What version of 2D Toolkit
3. Do you have anything else imported in the project
4. Do you get this on an empty project?
5. Do you have any other scripts on this object?

Can you give me exact step by step instructions on reproducing this?

vikas4goyal

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Tk2dsprite changing transform automatically
« Reply #2 on: August 11, 2013, 08:54:49 pm »
Hi ,
 thank you for your reply. i am sending you video link which i show step by step instruction to reproduce this problem.
http://youtu.be/x7NDyM3me9k
Problem is occur when i attracted Rigid body to object and then duplicate it. i also unchecked use gravity option of rigid body. for more detail please checkout video link.
1. my version of unity is 4.2
2. 2d toolkit version is 2.10 final+hotfix1
3. i have imported NGUI and UnityVS
4. In video i tried this in empty scene and problem occur in empty project also. One more thing
problem occur when collider type is box trimmed and box custom
5. i didn't attracted other script with this object
« Last Edit: August 11, 2013, 09:00:11 pm by vikas4goyal »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dsprite changing transform automatically
« Reply #3 on: August 11, 2013, 09:09:29 pm »
You missed out quite a bit of that information in your first post - you didn't say anything about rigidbodies. You created 2 rigidbodies at exactly the same place.

They get pushed out of each other when you press play and don't stop moving because there is no gravity or any friction to stop it. You will see the same thing happen if you put 2 Unity boxes at the same position.

Edit: I also notice you've "asked" the same question as a 1 star review on the asset store? Please remove it and leave a real review if you want to - but please don't abuse the review system to ask a question.
« Last Edit: August 11, 2013, 09:15:02 pm by unikronsoftware »

vikas4goyal

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Tk2dsprite changing transform automatically
« Reply #4 on: August 11, 2013, 09:17:56 pm »
Oh! got it..
thank you buddy you guys are awesome .
 i already deleted my 1 star review and sorry for it.. :)
thanks again
« Last Edit: August 11, 2013, 09:21:25 pm by vikas4goyal »