[Behavior] Pin behavior - get pinned UID Forum Home > Construct 2 Development > Plugins for Construct 2 |
Post Reply
|
Page 12> |
| Author | |
Post Options
Quote Reply
Topic: [Behavior] Pin behavior - get pinned UIDPosted: 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 |
|
![]() |
|
Post Options
Quote Reply
Posted: 20 Feb 2012 at 7:01pm |
|
|
Hmm.. that should be useful.
|
|
![]() |
|
Post Options
Quote Reply
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)? |
|
![]() |
|
Post Options
Quote Reply
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 |
|
![]() |
|
Post Options
Quote Reply
Posted: 27 Mar 2012 at 4:03pm |
|
|
Bump for updates. :P
|
|
![]() |
|
Post Options
Quote Reply
Posted: 27 Mar 2012 at 4:35pm |
|
|
@newt : ah, thanks for that. I didn't add a post after editing the first one
.
|
|
![]() |
|
Post Options
Quote Reply
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
|
|
![]() |
|
Post Options
Quote Reply
Posted: 07 Jun 2012 at 3:32pm |
|
|
Is pin to distance supposed to move the red blocks?
|
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Jun 2012 at 6:34pm |
|
|
Is there any way to pin something only specific axis ? ex( X axis only)
|
|
![]() |
|
Post Options
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
Page 12> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |