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.

Topics - radu

Pages: [1]
Support / Animation resetting material?
« on: December 30, 2014, 05:08:24 pm »
I need to have multiple materials to support some custom shaders but it seems running an animation resets the material. Any way to avoid that?

What would be the easiest way to have a angled top/down perspective where my characters can go in front or behind a wall (that's part of a tilemap)?

I could work with the sorting layer/sort order for individual sprites, but the tilemap seems to be batching the walls and not sure how to play with the sorting order.

Is there a way to say something like descending (top to bottom) draw order and then I can change the ordering on my character sprite depending on the position so it's in front or behind walls?

Also, how would I figure out my main character sprite is behind a specific section of the tilemap so I can make it a bit transparent? Once again, it looks like the colliders are batched as well into edge colliders.


Support / Scaling artifacts with camera x2
« on: December 23, 2014, 06:18:50 pm »
I'm getting some strange scaling artifacts - see image

Left is with artifacts, right is normal. Most of the time the sprite is displayed properly, except every once in a while this happens.

I'm using a 2x camera. It doesn't matter if the 2x is made via pixels per meter or zoom factor, the same problem occurs.

Am I missing something?

(this shouldn't matter, but what you see is actually 4 sprites: yellow robe, brown accent, black parts, yellow eyes; also, there is a two-frame animation for all these parts - that's why they don't look exactly the same left and right)

Support / Script to rename sprites in collection
« on: December 19, 2014, 06:55:28 pm »
I have an editor script that retrieves a sprite collection to do some mass renaming. The renaming seems to work but it's not reflected on the tk2d editors.

I checked the sprite collection data file on disk and the names are changed.

I'm guessing I need to run something to force a refresh/rebuild...

Here's my code:

Code: [Select]
[MenuItem("Blah/Mass Rename/Idle Sprites")]
    public static void MassRenameIdleSprites()
            var spriteCollection = AssetDatabase.LoadAssetAtPath("Assets/Sprites/MainSpriteCollection.prefab", typeof(tk2dSpriteCollection)) as tk2dSpriteCollection;
            var spriteCollectionData = spriteCollection.spriteCollection;

            for (int i = 0; i < spriteCollectionData.Count; i++)
                spriteCollectionData.spriteDefinitions[i].name = spriteCollectionData.spriteDefinitions[i].name + "AB";
        catch (Exception e)

Showcase / Kids Toy Workshop - preschool kids game (Android/iOS)
« on: October 30, 2013, 12:13:05 am »
I recently released this, using tk2d:


Taking the opportunity to thank unikron for this amazing plugin!

Support / Editing multiple items in SpriteCollection
« on: July 09, 2013, 08:25:03 pm »
I found a couple of older topics on this, but no solution.

When selecting multiple items in a sprite collection, changing properties only applies to the last selected one.

Support / Gap in tiled sprite
« on: June 13, 2013, 09:50:06 am »

I have a tiled sprite that has no gap in the png file. However, it appears there's a gap between the individual tiles when using a TiledSprite:http://imgur.com/PU38z3f.

Is there something I'm missing?


Pages: [1]