[Behavior] Pin behavior - get pinned UID

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply Page  12>
Author
5,297 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Topic: [Behavior] Pin behavior - get pinned UID
    Posted: 19 Feb 2012 at 7:05pm
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.zip

Edited by Pode - 27 Mar 2012 at 3:54pm
Back to Top
3,635 Rep
Post Options Post Options   Quote Danijerry Quote  Post ReplyReply Direct Link To This Post Posted: 20 Feb 2012 at 7:01pm
Hmm.. that should be useful.
Back to Top
1,395 Rep
Post Options Post Options   Quote raptor0723 Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2012 at 6:45pm
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)?
Back to Top
9,714 Rep
Post Options Post Options   Quote gammabeam Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2012 at 11:00am
Yesterday I kinda flooded @scirra twitter proposing something similar.
With this plugin I may achieve what I was looking for :D
Back to Top
16,524 Rep
Post Options Post Options   Quote newt Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2012 at 4:03pm
Bump for updates. :P
Back to Top
5,297 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2012 at 4:35pm
@newt : ah, thanks for that. I didn't add a post after editing the first one .
Back to Top
1,395 Rep
Post Options Post Options   Quote raptor0723 Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2012 at 5:40pm
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
Back to Top
3,032 Rep
Post Options Post Options   Quote Blam Quote  Post ReplyReply Direct Link To This Post Posted: 07 Jun 2012 at 3:32pm
Is pin to distance supposed to move the red blocks?
Back to Top
1,514 Rep
Post Options Post Options   Quote stefanos Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2012 at 6:34pm
Is there any way to pin something only specific axis ? ex( X axis only)
Back to Top
1,799 Rep
Post Options Post Options   Quote justifun Quote  Post ReplyReply Direct Link To This Post Posted: 25 Oct 2012 at 4:51pm
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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down