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

Pages: [1]
1
Support / Re: CurrentSprite.GetUntrimmedBounds() Gives wrong center
« on: January 12, 2017, 07:12:15 pm »
CurrentSprite.GetBounds returns bounds in local space to the sprite. You should use renderer.bounds, that returns an AABB in world space. I'm assuming your position variable is in world space

Thank you, I assumed I had to use the mesh renderer, but initially i thought tk2dsprite had a built in parameters for bounds.

Thank you.

2
Support / [SOLVED] CurrentSprite.GetUntrimmedBounds() Gives wrong center
« on: January 12, 2017, 01:24:07 am »
Greetings, I was converting some code that works with spriteRenderers to work with 2D Toolkit, and there was a section of code that read like:
if(bounds.Contains(position) ){
//Do something
}

However, using 2DToolkit sprites, I figured I should use tk2dSprite.CurrentSprite.GetBounds().Contains(position) or tk2tk2dSprite.GetBounds().Contains(Position), but it was giving me false results :(, and I noticed my bounds.Center parameters were always ceros.

Is there anything I am missing? Should I use the MeshRenderer instead? For the moment I decided to store the bounds in a temporary variable, and then assign the center to my sprite.transform.position.

Is there a 2d toolkit built in parameter that gives me the correct bounds?

3
Support / Re: About AnimationCompleted and AnimationEventTriggered
« on: June 07, 2016, 10:25:44 pm »
I cannot find how to use AnimationCompleted either... those links are dead.  :'(

5
Support / Re: Sprite + Normal Map
« on: March 01, 2016, 02:16:19 pm »
Sorry for necroposting...
But the link with the way to do it is broken... I was wondering if this was implemented in tk2d, or is there a way to implement it to a game.

Thank you.

6
Support / Re: Circular Progress Bar
« on: November 20, 2015, 05:53:49 pm »
So, this is not an official feature yet?

7
Support / Re: tk2dExternal does not exist
« on: April 08, 2015, 11:39:18 pm »
I reinstalled Monodevelop. It fixed my problem.

8
Support / Re: tk2dExternal does not exist
« on: April 08, 2015, 10:31:22 pm »
The thing is, the DLL is there.

But for some reason Mono does gives me the "Does not exist in the current context" error in tk2dEditorSkin line 14, 20, 24, and 46.

So, do you recommend me deleting and adding the DLL?

Sorry if this problem is not really 2D toolkit. I love your tools, but this bug has totally disrupted my rhythm today... I have not been able to work...

9
Support / Re: tk2dExternal does not exist
« on: April 08, 2015, 07:33:53 pm »
I am having the same problem... I even created a fresh new project, just to import 2D Toolkit, same error...

Pages: [1]