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

Pages: [1] 2
1
Support / Re: How do I add image load from the server into the atlases
« on: January 03, 2014, 04:32:33 am »
I think i got it. Use renderer.material.mainTexture not the texture from tk2dSpriteFromTexture. Thanks alot man!

2
Support / Re: How do I add image load from the server into the atlases
« on: January 03, 2014, 04:12:51 am »
I am loading image from youtube and displaying using the tk2dsprite. What ways can i do this? I tried tk2dspritefromtexture but the image didnt display on the sprite.

3
Support / How do I add image load from the server into the atlases
« on: January 02, 2014, 08:18:37 am »
Anyone can help?

4
Support / tk2dCamera overrides
« on: March 19, 2013, 05:42:32 pm »
I cant figure out how to use this. I cant bring my build to webplayer 320x480 where my 2dtkcamera native resolution is 960x480. what do i need to do? do i have to manually add overriddes and code which overrides to use or just add a few overrides to couple of different resolution and it will auto do scale the resolution?? Thanks alot for answering...

5
Support / Re: How to play animation in reverse?
« on: February 15, 2013, 06:27:18 am »
Done. just create another clip and named it as reverse. i would be good if i can just reverse = true to reverse the original clip. thanks lot

6
Support / Re: How to play animation in reverse?
« on: February 15, 2013, 01:55:24 am »
I m doing a wheel animation. if i need the wheel to play in reverse when i hit the back key and play forward when i hit the forward key but i cant figure out how to play in reverse.

7
Support / How to play animation in reverse?
« on: February 14, 2013, 11:17:18 am »
How to play animation in reverse?

8
Support / Re: how to get Sprite height and width?
« on: January 18, 2013, 03:21:31 am »
thanks got it to work...

9
Support / how to get Sprite height and width?
« on: January 17, 2013, 02:23:26 pm »
how do i get the the height and width of my jpeg or png file in unity?

10
Support / Re: Animate Alpha
« on: September 26, 2012, 04:18:07 am »
private tk2dAnimatedSprite _sprite;
private float _fadingSpeed = 0.7f;

// Update is called once per frame
void Update ()
{
   StartCoroutine(fadeIn(_sprite, _fadingSpeed));
}

//Door fade in
IEnumerator fadeIn(tk2dAnimatedSprite sprite, float time)
{
   float alpha = 0.0f;
      
   while (alpha < 1.0f)
   {
      alpha += Time.deltaTime * time;
      sprite.color = new Color(255, 255, 255, alpha);
      yield return null;
   }
}

I done my fading my fading like this using co routine. I hope this help.

11
Support / Re: Collider type box custom problem?
« on: September 26, 2012, 04:12:03 am »
ya but the collider can be created but the sprite is always at the top left corner. I want it to be at the center of the collider this the picture shown below. Anyway to do it?

12
Support / Collider type box custom problem?
« on: September 25, 2012, 05:23:08 pm »
for spritecollection I selected
Anchor : Middle center
Coliider Type : box custom
Max X :1000
MaxY :2000

but the sprite is always at the upperLeft(Top left corner of the collider) how do I put the sprite in the centre of the collider? I change the center x and y in box collider but it always change back to the original.

13
Support / Re: addforce does not work in tk2dcamera?
« on: September 25, 2012, 05:10:25 pm »
thanks...

14
Support / Re: A noob question.Which one is faster?
« on: September 25, 2012, 05:09:51 pm »
thanks...

15
Support / A noob question.Which one is faster?
« on: September 25, 2012, 11:16:08 am »
private tk2dAnimatedSprite sprite;
sprite.transform.position

or just

transform.position in a object?

Pages: [1] 2