Learn how to build prototypes in Lunacy
How it works
You can build prototypes to test and polish UX of your designs before sending them to development.
Prototyping is based on frames. If you are planning to add prototyping to your project, the use of frames is a must.
The easiest way to create a prototype is to add a link between two frames. The procedure is as follows:
- On the first frame, select a layer the user will interact with (say, a button).
- In the Inspector panel, click + in the Prototyping section. A prototyping link appears.
- Point the cursor over the second frame and click to set the link. To define the target frame you can also use the Target dropdown list in the Prototyping section (see the demo below).
That’s it. A primitive prototype is ready. To make it a bit more usable, we will repeat the above steps and create a control that will return the user from Frame 1 to Frame 2 (see the demo in the next subsection).
To preview a prototype, select the frame you want to start with and click in the upper-right corner of the interface. The preview window will show up.
In a similar fashion you can link your frames in the desired navigation sequence and preview your design in action.
To create a scrollable prototype, you should select a frame from Frame Presets and resize it vertically. Alternatively, you can create a custom preset and then vertically resize it. For details, about frame presets and custom presets, click here.
Resized frames appear with the word Resized in the Inspector as shown in the figure below. Prototypes based on non-resized frames won’t scroll.
You can also use hotspots to create links between frames. These are a special type of layers that lets you create interactive zones anywhere on frames.
Also, hotspots come in handy when the size of an element that you want to make clickable or tappable is too small for convenient use. By adding a hotspot you can enlarge interactive area around the layer.
Moreover, you can use hotspots as parts of components and override their targets as needed.
To add a hotspot you can:
- Use the hotspot tool.
- Select a linked layer, then click in the Prototyping section of the Inspector. This creates a hotspot of the same size as of the selection frame around the layer. You can resize it by dragging handles, if necessary.
The demo below show both these methods.
The next figure shows how hotspots and linked layers appear in the Layer list.
To hide/show hotspots and prototyping links on the canvas, use the Prototyping button on the action bar.
To delete a hotspot, select it and press
The figure below shows the controls that appear in the Prototyping section when you select a linked layer or a hotspot.
- This icon appears only when you select a linked layer. A click over the icon creates a hotspot over the layer. See the Hotspots section above.
- The trash can icon. Discards prototyping setting for the selected layer/Deletes the selected hotspot.
- A click over the arrow will bring you to the frame which is set as target for the selected layer.
Use this drop-down list box to set the target frame for the selected layer (see the figure below). It shows the list of all frames available in the document. If you have several pages in your document, the frames will be organized by pages. It is OK, if interlinked frames are on different pages. Also, the list features two more options:
- None - sets the zero target.
- Previous frame - a click over the layer with this option selected will bring you back to the previous view.
- These controls allow you to choose how the target frame will show up on the screen during the preview.
- Select this checkbox, if you want the selected layer to preserve its position when you scroll the screen (for instance, a floating button).
With this checkbox selected, scrollable frames will preserve their position during preview of the prototype. When you get back to the frame, it will be in the same position as you’ve left it.
With the clear checkbox, the frame will always return to the top.