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 - Dujj

Pages: [1]
1
Support / Sprite attached to Animator in a Prefab being reset
« on: November 10, 2013, 08:48:47 pm »
Just updated to the latest tk2d version, but I can't say that this started with the update.

1. Create a new "Sprite with Animator"
2. Choose a Anim Library and a Clip
3. Make a prefab by dragging it to the project window
4. Go back to the instance in the Scene.  Keep the same Anim Library but change the Clip, the preview in the Sprite will update.
5. Click play to go into Play mode.
6. Observe the object in Play mode (or Paused)

Result:
The Clip selected in the instance is the same, but the selected Sprite that is actually being displayed no longer will agree with it.  Most likely it will be displaying the sprite in the prefab, but this is may not be consistent.

Also:
If in step 2 you additionally select "Play Automatically" the correct sprite from the selected Clip will display during Play Mode, but when you leave Play Mode the Sprite will revert.  This is how I originally found the problem.

Workaround:
When selecting the Clip in the Animator, also go into the Sprite and manually re-select the sprite, even if it has chosen the correct one for you.

2
Support / Re: Tiled Sprite not displaying full width/height
« on: October 16, 2013, 02:31:27 am »
Awesome, thanks again, that'll definitely easier than working around it.

3
Support / Re: Tiled Sprite not displaying full width/height
« on: October 14, 2013, 06:32:50 pm »
Thanks!

4
Support / Tiled Sprite not displaying full width/height
« on: October 14, 2013, 05:57:07 pm »
I have a 16x16 png that I am using for a Tiled Sprite.  When the Tiled Sprite is at certain dimensions it is not displaying all the sprites in the row/column.  In the attached image you can see the box colliders from the Tiled Sprite are scaling themselves to the correct dimensions, but the sprites do not.

In the step-wise part of this image, the width of the Tiled Sprites is as follows (in Pixel Units, * indicates the full sprite tiling is not displayed): 128*, 144*, 160, 176, 192, 208, 224, 240, 256*, 272*, 288*, 304

It's possible that this is happening as a result of me using an image that is a power of 2.  The round gray object in this image is 18x18 and does not display the problem (pictured dimensions of the tiled sprite are 144x144 pixel units).  On the other hand the 4-color checkerboard is 32x32 and it DOES display the problem (pictured here at 256x256).

5
Support / Re: Getting an error when trying to make animations
« on: June 02, 2013, 09:58:28 pm »
I'm seeing the a similar problem here.  Just created a new Sprite Animation, created a clip, tried to select a different Sprite Collection and I get this error:

Quote
IndexOutOfRangeException: Array index is out of range.
tk2dEditor.SpriteAnimationEditor.ClipEditor.DrawPreview () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteAnimationEditor/tk2dSpriteAnimationClipEditor.cs:218)
tk2dEditor.SpriteAnimationEditor.ClipEditor.Draw (Int32 windowWidth) (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteAnimationEditor/tk2dSpriteAnimationClipEditor.cs:553)
tk2dSpriteAnimationEditorPopup.OnGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteAnimationEditor/tk2dSpriteAnimationEditorPopup.cs:480)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Shooting support at unikronsoftware.com an email with a dropbox link.

Pages: [1]