[Behavior] Pin behavior - get pinned UID

Post your completed addons to share with the community

Post » Sun Feb 19, 2012 7:05 pm

Edit : 1.1, new version, see at the bottom of the post for updates

You're not going to do backflip on that one, but I though the Pin behavior can benefit a "get pinned Object UID" method.
So, here's the modded behavior (if Ahsley want to add that to next release, it's a one line property ;)) :
http://dl.dropbox.com/u/1412774/PinBehaviorDemo/PinBehaviorDemo.capx

http://dl.dropbox.com/u/1412774/PinBehaviorDemo/pode_pin.zip

Edit : version 1.1 (new icon !)
You can know use "pin by angle only", and "pin by distance only". If you want the pin behavior to behave normally, just pin it back to the same object.
New demo : http://dl.dropbox.com/u/1412774/PinBehaviorDemo2/index.html
.capx : http://dl.dropbox.com/u/1412774/PinBehaviorDemo2/PinBehaviorDemo2.capx
.zip for the plugin : http://dl.dropbox.com/u/1412774/PinBehaviorDemo2/pode_pin.0.2.zipPode2012-03-27 15:54:19
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Mon Feb 20, 2012 7:01 pm

Hmm.. that should be useful.
B
28
S
9
G
6
Posts: 30
Reputation: 6,609

Post » Mon Mar 26, 2012 6:45 pm

It is very useful indeed and already helped me alot)
Thank you)


Although i wanted you to ask, if it would be possible to add some options to this behavior, like pin only by angle(don't follow pinned object's position) and distance(follow to position but the angle)?
B
12
S
5
G
3
Posts: 14
Reputation: 3,322

Post » Tue Mar 27, 2012 11:00 am

Yesterday I kinda flooded @scirra twitter proposing something similar.
With this plugin I may achieve what I was looking for :D
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Tue Mar 27, 2012 4:03 pm

Bump for updates. :P
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Tue Mar 27, 2012 4:35 pm

@newt : ah, thanks for that. I didn't add a post after editing the first one .
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Mar 27, 2012 5:40 pm

Hm... could you make it not to move to the position of the pinned object when enabling "Pin by distance" but to keep its offset? And same for the angle.
JohnJ made it here, but his behavior didn't had such a marvelous option to return pinned object UID
B
12
S
5
G
3
Posts: 14
Reputation: 3,322

Post » Thu Jun 07, 2012 3:32 pm

Is pin to distance supposed to move the red blocks?
B
21
S
7
G
3
Posts: 33
Reputation: 4,522

Post » Sun Jun 10, 2012 6:34 pm

Is there any way to pin something only specific axis ? ex( X axis only)
B
27
S
8
G
3
Posts: 77
Reputation: 2,883

Post » Thu Oct 25, 2012 4:51 pm

There seems to be a bug if you keep clicking back and forth between "pin only distance" and "pin only angle" it gets all screwy.
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests