2D Toolkit Forum

2D Toolkit => Support => Topic started by: Disastercake on May 14, 2012, 12:58:56 am

Title: FEATURE REQUEST - Multiple custom anchor points
Post by: Disastercake on May 14, 2012, 12:58:56 am
I'm not sure if this is the right place to put this, but here it goes! =D

I think it would be very awesome to have multiple anchor points function.


This feature would bring a lot of power to 2D Toolkit.  It would make things like attachable armor, weapons, special effects ,etc much easier to handle.

However if there's already a way to do this I'd really like to know! =D
Title: Re: FEATURE REQUEST - Multiple custom anchor points
Post by: unikronsoftware on May 14, 2012, 09:07:33 am
There isn't a way to do this right now (except doing it yourself using prefabs). We would like to add something like this for a future release, so thanks for your suggestion.

Adding something like this is really simple, the problem is supporting all the different cases. Eg. what happens when the sprite is swapped and the 2nd part doesn't have the same anchor point? What happens to the children which are attached to these anchor points? Also how to handle dynamically adding and removing these is an issue when an animation is playing.

There will be an update with something like this in the future, just don't know when yet!
Title: Re: FEATURE REQUEST - Multiple custom anchor points
Post by: Juice on June 16, 2012, 06:05:55 pm
I'm actually requiring this right now, as I"m making a 2D shooter, where the head and arm rotates towards your mouse. I need multiple anchor points to properly attach the head and arm onto the animating sprite.

I can't imagine how this would be done using prefabs, as the anchor points are contained within the editor. I'll be happy to make all the modifications myself, if I could be pointed in the right direction.

Could you please give me some tips on how I could setup an additional 2 points unikron? :)
(I can't seem to find where to edit in the code, spent way too much time on this)
Title: Re: FEATURE REQUEST - Multiple custom anchor points
Post by: unikronsoftware on June 18, 2012, 04:44:37 pm
I think we should move this one to email until we get something resolved. Drop me an email and we'll discuss this further. support at unikronsoftware dot com.