Movement constraint

Hello,
a very simple thing:
I want to restrain the movement of a free group. It is allowed to be moved, not to rotate or zoom. But i want it not to cross the edge of the screen, I want it always completely visible, not to disappear halfways over the edge, if you know what I mean. How can I do that?
Thanks in advance
Micha

Hi @marnold,

At a first glance, I’d say that although you can’t implement such a behavior / constraint within Intuiface, you can implement something which could be close enough for you.

You can use the Trigger “is manipulated”, which is raised after an item has been moved (touch was released), and use Conditions to check if X or Y coordinates are too close to the edge and if so, automatically move the group back “in the scene”.

For example, if your XP is 1920x1080 and your group is 600x400

  • If X < 300, move group to (300, current Y)
  • If X > 1620, move group to (1620, current Y)
  • If Y < 200, move group to (current X, 200)
  • If Y > 880, move group to (current X, 880)

Would such a solution work for you?

If you want us to look more in details at your XP, please open a ticket on our support platform.

Seb

Hi Seb,
works perfectly, thank you!
As I want the back movement animated, the only trick is to delay the x movement until the y movement is finished, or the group will not return completely back to the scene.
Greetings
Micha