|
The “Constrain” Action is used to keep a draggable element in a specific area. To “Constrain” an element, set up an Action for that element as follows:
|
When -> Page -> Page Loaded Target -> (Element to be Dragged) Message -> Drag -> Constrain Drag Properties -> To Container Object
|
|
The example to the right is the same as the example on the Overview page, with the exception that I´ve added the Action above to the “Drag Me!” element as well. This ensures that the “Drag Me!” element will stay within a defined area and behave itself. ^_^
Now that we know how to make things move, and to control where they move around, the next step is to make moving things around mean something. This is what Collision Detection is all about.
|