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

Pages: [1]
1
Support / Re: Custom font doesn't work.
« on: June 08, 2013, 03:23:20 am »
Thank you for your helping. It works.

2
Support / Re: Custom font doesn't work.
« on: June 07, 2013, 02:47:35 pm »
The .tga file is too large to upload it. So I compressed them.

3
Support / Re: Custom font doesn't work.
« on: June 07, 2013, 11:08:00 am »
Yes, I followed the settings.

I saved out the font as .tga and font data as  txt.

4
Support / Custom font doesn't work.
« on: June 07, 2013, 09:32:17 am »
1. I made a  text font and texture from BMFont program. There are 1521 characters including '0'-'9'.
2. I created a Font object. Assign the text font and texture to the Font object.
3. Clicked "Commit" button.
4. I created a TextMesh using the Font object.
5. Set the text to "100".

Just three rectangles(six triangles) were shown.

Then I changed Bm Font and Texture with demo font and texture in tk2d_demo. "100" was shown.
But I used my custom font and texture in NGUI. It worked.

5
Support / How to get tk2dAnimatedSprite by MouseUp?
« on: May 27, 2013, 09:20:16 am »
I can get a transform using Class Ray and Class RaycastHit. And Then I want to get a tk2danimatedSprite instance when I press the mouse button. How to do it?Please help me.

6
Support / Re: How can I change the anim in a tk2dAnimatedSprite?
« on: May 27, 2013, 03:23:33 am »
How to using resources.load?

temp.anim = Resources.Load("SpriteAnimationName", typeof(tk2dSpriteAnimation));

There is an error : Cannot implicityly convert type 'UnityEngine.Object' to 'tk2dSpriteAnimation'.

7
Support / How can I change the anim in a tk2dAnimatedSprite?
« on: May 24, 2013, 09:29:56 am »
Hey:
    I created a tk2dAnimatedSprite with the function Instantiate.  How can I change the anim in the instance?

    public tk2dAnimatedSprite prefab;
    tk2dAnimatedSprite temp = Instantiate(prefab, new Vector3(0,0,0), Quaternion.identity) as tk2dAnimatedSprite;

    Then I want to use another tk2dSpriteAnimation instead of the default. How to do it?

8
Support / Re: About Destorying tk2dAnimatedSprite
« on: May 24, 2013, 06:38:16 am »
Thank you for helping me. ;D ;D

9
Support / About Destorying tk2dAnimatedSprite
« on: May 23, 2013, 03:30:02 am »
Hey guys:
I have a problem. Please help.
I created a prefab using a tk2dAnimatedSprite. Then I created a instance like this:

tk2dAnimatedSprite temp = Instantiate(prefab, new Vector3(0,0,0), Quaternion.identity) as tk2dAnimatedSprite;
Destory(temp);

But the instance didn't destoryed. It still showed in the Hierarchy View.

I did another test. I created a prefab using a Cube.Then Coding like this:
GameObject temp = Instantiate(cubePrefab, new Vector3(0,0,0), Quaternion.identity) as GameObject ;
Destory(temp);

The cub destoyed. It didn't show in the Hierarchy View.

How did I destoy a tk2dAnimatedSprite instance?

10
Support / Re: About Particle System
« on: May 23, 2013, 03:13:59 am »
 ;D
OK. I saw it. Thank you!

11
Support / About Particle System
« on: May 22, 2013, 08:45:07 am »
I created a tk2dCamera. Then I deleted the default main camera. And then I created a Particle System. Can I see it? How do I use Particle System with tk2dCamera?

12
Support / Re: I can't create a sprite.
« on: May 22, 2013, 08:40:25 am »
Thank you.
I updated. And it worked.

13
Support / Re: I can't create a sprite.
« on: May 20, 2013, 04:23:24 pm »
There is a error shown in the Console.
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:181)
tk2dEditorUtility.GetOrCreateIndex () (at Assets/TK2DROOT/tk2d/Editor/tk2dEditorUtility.cs:104)
tk2dSpriteEditor.DoCreateSpriteObject () (at Assets/TK2DROOT/tk2d/Sprites/Editor/tk2dSpriteEditor.cs:213)

14
Support / I can't create a sprite.
« on: May 20, 2013, 02:45:05 pm »
Unity4.1.2f1 + 2D Toolkit 1.9.
After I creating a SpriteCollection, I clicked Create->tk2d->Sprite in the Hierarchy. But just a progress bar was shown.No Sprite created.
Please help me.

Pages: [1]