[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.
Goodbye
B
115
S
31
G
295
Posts: 4,549
Reputation: 164,633

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
92
S
44
G
17
Posts: 1,012
Reputation: 18,607

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
Goodbye
B
115
S
31
G
295
Posts: 4,549
Reputation: 164,633

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
34
S
11
G
3
Posts: 191
Reputation: 3,678

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.
Goodbye
B
115
S
31
G
295
Posts: 4,549
Reputation: 164,633

Post » Tue Aug 30, 2016 10:00 am

@rexrainbow

Im having trouble with pinned objects ignoring the behaviour.
Image
B
34
S
11
G
3
Posts: 191
Reputation: 3,678

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.
Goodbye
B
115
S
31
G
295
Posts: 4,549
Reputation: 164,633

Post » Tue Aug 30, 2016 11:54 pm

@rexrainbow

PM sent!
Image
B
34
S
11
G
3
Posts: 191
Reputation: 3,678

Previous

Return to Completed Addons

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests