[Behavior] Boundary

Post your completed addons to share with the community

Post » Sat Oct 11, 2014 10:20 am

Update

Rewrite this document.
Now this behavior could clamp the position in the boundary, or wrap the position to the other side of boundary.
B
107
S
25
G
243
Posts: 4,388
Reputation: 137,468

Post » Mon Oct 13, 2014 9:50 pm

@rexrainbow - awesome behavior!

I also like how if you are moving the boundary that the objects stay locked inside.
B
79
S
37
G
13
Posts: 957
Reputation: 15,389

Post » Sun Jul 17, 2016 3:38 am

Update

Add "Expression:HorPercent2PosX" / "Expression:HorPercent2PosY" -

Get position X/Y from percentage (0-1) of horizontal / vertical boundaries by "Expression:HorPercent2PosX" / "Expression:HorPercent2PosY". Sample capx
B
107
S
25
G
243
Posts: 4,388
Reputation: 137,468

Post » Mon Aug 29, 2016 10:57 pm

Hey rex, is there a way to force the boundary rules for an object if setting its x and/or y position directly?
Image
B
28
S
9
G
3
Posts: 162
Reputation: 3,256

Post » Mon Aug 29, 2016 11:59 pm

@gameglaux

You could move the object by dragdrop behavior or setting position directly now, this boundary behavior will clamp or wrap the position.
B
107
S
25
G
243
Posts: 4,388
Reputation: 137,468

Post » Tue Aug 30, 2016 10:00 am

@rexrainbow

Im having trouble with pinned objects ignoring the behaviour.
Image
B
28
S
9
G
3
Posts: 162
Reputation: 3,256

Post » Tue Aug 30, 2016 3:24 pm

@gameglaux

I could not get your requirement, please provides a very simple capx to describe this problem.
B
107
S
25
G
243
Posts: 4,388
Reputation: 137,468

Post » Tue Aug 30, 2016 11:54 pm

@rexrainbow

PM sent!
Image
B
28
S
9
G
3
Posts: 162
Reputation: 3,256

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests