Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Moran

Pages: [1]
1
Support / Re: Constantly "Rebuilding Index" - Probably VC related
« on: April 17, 2013, 07:28:19 am »
Forgot to update but the patch for 1.90 and the following version solved the issue for me.

Now, after a merge, whether -tk2d is versioned or not, clicking on "new" sprites causes the index to be rebuilt just once and that's it.

Thanks and good luck netlander.

2
Support / Re: Constantly "Rebuilding Index" - Probably VC related
« on: March 25, 2013, 07:18:04 am »
I did update Unity. Since I bought td2k under another account, my package don't auto-update. I'll update and report, although I already rebuilt the entire object and that also worked.

We've been using SVN for a while, "meta files" is selected and we're using "force text".

3
Support / Constantly "Rebuilding Index" - Probably VC related
« on: March 24, 2013, 12:47:51 pm »
Hi!

I SVN "Checked out" a project which had a prefab with sprites in it.
Initially it worked well, but then I changed the prefab and undid the change, if I remember right (didn't pay attention).

The result being that for some objects in the prefab, whenever they are clicked or scrolled to, "Rebuilding Index" always appears several times, even if I click away and immediately back to the same object.

I tried Updating again but erasing the -tk2d file as instructed in some post, not helping.

Help?

EDIT: It also results in this error message, after almost every "rebuild": MissingReferenceException: The object of type 'tk2dIndex' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
tk2dEditorUtility.CreateIndex () (at Assets/TK2DROOT/tk2d/Editor/tk2dEditorUtility.cs:215)

4
Stupid thing - The prefabs I used for the background sprites were set to be "static" which I missed initially... The shame: :-[

Thanks for all your help!

5
when you mean edit mode, do you mean pressing play in the editor vs a real build ? if that's the case you should probably have a look at the logs of the game (somewhere inside the build directory, can't remember where exactly). you might have some error message there. also try with a debug build maybe. worst come to worst, you can try to recreate your background from scratch and see what happens.

I meant pressing play vs. manually dragging the object around when play is not pressed.

On runtime (play is pressed), the background objects are not moving with the rest of the sprites.

6
could it be that your camera is a child of your background object ? and so that it moves too when you move your background ?
also, if your camera is orthographic, translation along the z axis will not always have visual effect. (although you state that it is on the y axis).

The camera in question, which is the main camera, is in the root. Movement is indeed on the Y axis (up/down in my orientation) - It works well in Edit mode, but in runtime all the sprites move except the background objects.

Thanks for your reply!

7
Help?

8
Thank you for your reply!

Are you trying to move the anchor object? If so, you can't - the anchor repositions itself every frame while the game is running. You should add a child game object, link all your sprites to that, and move that game object instead.

There is no anchor object, it is only a parent of the child objects by unity's transform, no anchor script or anything. BUT, the background images that arent moving are set to "anchor left" and "anchor right"... Maybe that's the reason.

How do I link sprites to gameobjects? Must the linked GO be a child GO? Can I link them to the parent container GO?


Thanks again!

EDIT: Just to be clear, let me specify what I'm trying to achieve:
Container object (no scripts)
- Screen Object (with my scripts)
-- Background object (no scripts)
--- Left (tk2d sprite, anchored mid-right)
--- Right (tk2d sprite, anchored mid-left)
-- Props objects (no scripts)
--- many objects, including sprites

- Another screen object with similar structure to previous)

I'm moving the container object at runtime, everything, including props sprites, move with it, EXCEPT the background sprites on both screens, which are not moving, but should.

9
EDIT: I'll save you the trouble of scrolling through this shameful mess: Check that your objects aren't "static"!

In my scene are two screens, one under the other.
In each screen, several sprites, including two background images sprites for each screen (each screen has 2 sprites as background).
Both screen gameobjects are under a container gameobject, since I want to simulate a scroll animation by moving that container up and down on the Y axis.
When I move the container in the editor, everything moves fine.

When I'm in Play mode, during run time, if I change the container's Y position, everything in the scene moves except the background sprites of BOTH screens. The top screen's background is not moving and the bottom one stays at the bottom. The anchor gizmo that shows where the object's anchor is, is actually moving, but the sprites are not moving with it.

Nowhere in the code am I addressing these particular sprite's positions.

WTF? Help!

Pages: [1]