Hello Guest

Recent Posts

Pages: [1] 2 3 ... 10
1
Releases / Re: 2D Toolkit 2.5.8.7
« Last post by unikronsoftware on October 17, 2017, 05:09:53 PM »
Hello! Why there's no new version on Asset Store?

Hi, turns out I forgot to press submit! Doh! Done now.
2
Releases / Re: 2D Toolkit 2.5.8.7
« Last post by danmerey on October 16, 2017, 10:14:00 PM »
Hello! Why there's no new version on Asset Store?
3
Support / Re: Advanced Collider Shapes Workflow
« Last post by pako on October 10, 2017, 11:21:47 AM »
Thank you!
4
Support / Re: Advanced Collider Shapes Workflow
« Last post by unikronsoftware on October 10, 2017, 09:33:01 AM »
The name dropdown was built so you could have shared names whilst avoiding typos in the different colliders that were added. This is so if you were moving a hand collider you could move it rather than destroy (disable) and re-create it. The tickbox selects the collider currently being edited.

In terms of performance, I would just write a simple script to pool initally (create if not exists, or disable when not needed). Depending on your use case, editor scripts might not be necessary.
5
Support / Re: Advanced Collider Shapes Workflow
« Last post by pako on October 09, 2017, 06:56:49 PM »
Thank you for your prompt response.

Your script has been very helpful both for understanding how the system works, as well as to get me started on a full implementation.

It seems to me that for best performance I should turn this into an Editor script to create all colliders for a particular sprite in Edit mode, and then at runtime enable/disable the set of colliders corresponding to a particular animation frame.

As we are on this topic, could you please give some insight on the usage of the Input Box at the top of the Advanced Collider Editor. Apparently it's for the new naming feature, which was added in the last version of 2DTK.  It gets filled with strings, and you can select which one is active by clicking on the checkbox next to it.  What is the correct usage of this feature?

Thanking you in advance.
6
Support / Re: Advanced Collider Shapes Workflow
« Last post by unikronsoftware on October 09, 2017, 02:21:35 PM »
Hi,

The advanced collider system was created for a particular customer who was using it for a fighting game - basically they wanted to use it to mark hit boxes on the character. What it does is it lets you create the shapes in the editor but doesn't do anything further than that with the data.

You will have to write code to create the colliders at runtime. "The data isn't used by the actual runtime, but you can hook into the system to tell you when the sprite (and as a result the attached colliders) have changed. Please note that the system will not create the colliders for you - you will be responsible in doing that should you wish to create colliders."

To get you started, here's a script that will create and destroy colliders at the correct positions. Its not complete, so doesn't respect rotations. And you should really pool these.
7
Support / Advanced Collider Shapes Workflow
« Last post by pako on October 07, 2017, 08:19:07 PM »
Hi,

I want to use Advanced Collider Shapes, in order to have multiple colliders per sprite in a Collection that will be used for creating an Animated Sprite. So, as the Sprite animates and changes shape, the corresponding colliders will be enabled to approximate the sprite's shape in each animation frame.

I was able to create 4 Advanced Colliders per Sprite in the Collection by following the relative documentation: http://2dtoolkit.com/docs/latest/advanced/advanced_collider_shapes.html
but I haven't found any info in the documentation about the Advanced Collider Editor.  Also, it says that "At runtime, the collision shapes for a sprite can be obtained from the tk2dSprite.CurrentSprite.customColliders array." However, there are no examples on workflow and usage, and I really need some help on implementing this feature.

After I created the Animation from the Collection, I created a Sprite with Animator in the scene, and the added Sprite had a Polygon Collider, which I deleted, and I understand that I will have to add the colliders myself, but I don't know how to use the shapes that I created for each sprite in the Collections to help me add the correct shaped collider on the animated sprite.

I also don't know how to use the tk2dSprite.CurrentSprite.customColliders array to enable/disable the correct collider for each frame of the animation.

Your help will be very much appreciated.


8
Add-ons and Extensions / Re: U2DEX: Unity 2D Editor Extensions [RELEASED]
« Last post by MrPoopybutt on October 07, 2017, 06:59:00 PM »
Any sales coming up in 2017? :)
9
Support / Re: Warnings
« Last post by jjv on October 05, 2017, 03:04:38 PM »
Nvm, i deleted the root folder and re-imported and it is gone. Thanks!
10
Support / Re: sprite shimmering after upgrading from unity 4.7 to unity 2017
« Last post by unikronsoftware on October 04, 2017, 11:51:51 PM »
Apologies for the delays but I have released an update with this issue fixed and tested with all the combinations of supported Unity versions (5.5+) and permutations. Let me know if it works for you
Pages: [1] 2 3 ... 10