> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobyco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit a gameplay in the Gameplay Editor

> Change how a gameplay looks and what it says in the Gameplay Editor, from its pages and layout to the links that close the game, then refresh it so customers see the changes.

This page helps you change how a gameplay looks and what it says, in the Gameplay Editor. You open the editor from the gameplay's **Game Setting** page in **Gameplay design**.

> [!NOTE]
>
> Before you start, create the gameplay in **Gameplay design**. [Design a game](https://help.lobyco.com/business-documentation/activities/games/design-a-game) explains how.

## Open the editor

1. In **Toolbox** → **Gameplay design**, select the card for the game type, then **Edit** on your gameplay. It opens on its **Game Setting** page.
2. Select **Go to Gameplay Editor**. The editor opens in a new browser tab, on the first page of the gameplay, in preview mode.
3. Select **Edit content**, the tab on the right edge of the preview.

The Game Navigator opens on the left, with the gameplay's pages. The Game menu opens on the right, with the settings of whatever you've selected. While you edit, the tab on the right edge of the preview reads **Play demo**. Select it to play the page as customers see it.

Your gameplay is a copy of a template, so it already has pages and content. Look through them before you change anything, and decide whether to keep the same pages in the same order.

![The Gameplay Editor in edit mode, on a chocolate bar demo gameplay. On the left, the Game Navigator is on its Flow pages tab, between the Sections and Popovers tabs. It lists Registration with a padlock, then Intro Screen opened out into Row, Column and four Image blocks, the third of them selected, with Add new block, Add new column and Add new row under them, then Game rules (general), Game, Win and Lose. Add new flow page is at the bottom. In the middle, a phone preview shows the intro screen, a photo of the chocolate bar, the text Play now and you can win a Snickers clasic 50g with the selected image outlined in green, a Start game button and a Terms & Conditions bar. A Play demo tab sits on the right edge of the preview. On the right, the Game menu is on its Content tab, between Style and Advanced. Its General panel shows the selected image, Browse image chosen over Use replacement tag, Image source with a file path, an empty Image alt, Image size Full (actual size) and a Resize button, with Action on click and Select action below. Along the bottom are the device preview icons for desktop, tablet and phone, then Navigator, Layout and Game.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-01-editor-overview.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=edabdf862500293cee9a6dacaaa621ad)

*The Gameplay Editor, with the Game Navigator on the left and the Game menu on the right*

## Find your way around the Game Navigator

The Game Navigator groups the gameplay's parts on three tabs.

| Tab | What it holds |
| - | - |
| **Sections** | Parts that aren't a page of their own. **Gameflow** is one. The Terms and Conditions section is another, the button at the bottom of every screen. |
| **Flow pages** | The screens customers move through, in order. Registration comes first, then the Intro page, any other pages you add, the Game page, and the Winner and Loser pages. |
| **Popovers** | Screens that open over a page. The Terms and Conditions popover holds the game's terms. |

Page names come from the template you started from, so yours can differ, such as **Win** instead of **Winner page**.

Leave **Gameflow** and the Registration page as they are. Registration is locked, with a padlock beside it. The one change it takes is a field for games with several rewards, which [Show each winner their reward screen](https://help.lobyco.com/business-documentation/activities/games/design-a-game/show-each-winner-their-reward-screen.md) explains.

![The three tabs of the Game Navigator side by side. Sections lists Gameflow and Terms & Conditions. Flow pages lists Registration with a padlock, Intro with movie, Intro, Game, Winner page and Looser page. Popovers lists Terms and Conditions.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-02-game-navigator-tabs.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=16df7ff932760d3796e562964f71c0c0)

*The Sections, Flow pages and Popovers tabs of the Game Navigator*

To add a section, flow page or popover, use the link at the bottom of the Game Navigator, such as **Add new flow page**. When you add a section, pick the first grid on the **Grid** tab. It has one row with one column, so everything sits one under the other, which suits a phone screen.

![The Add new section dialog of the Gameplay Editor, on its Grid tab, with Reuse section, Templates and Global tabs beside it. Under All grids are eleven grid layouts, each with a plus button: the first is a single wide block, then two, three, four and six equal columns, and mixes of wide and narrow columns.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-03-add-new-section-grids.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=bd0f03ecadba02076369860452a105f6)

*The Add new section dialog. The first grid is a single column.*

> [!WARNING]
>
> Keep the Winner and Loser pages. They don't decide who wins. Without them, customers still win and lose, but see a broken screen.

## Change an element in the Game menu

Select any element in the preview or in the Game Navigator, such as an image or a text. The Game menu shows its settings on three tabs.

| Tab | What it changes |
| - | - |
| **Content** | What the element shows, such as its text, or the link to its image or video. |
| **Style** | Its alignment, opacity and filters, borders and shadows. |
| **Advanced** | Its margins, padding, [transition](#add-transitions) and custom CSS. Also its Z-index, which decides which element sits on top. |

When you select a whole page, such as the Intro page, the first tab reads **Basic** instead of **Content**. A page also has a fourth tab, **Revisions**, to [undo your changes](#undo-changes-with-revisions). A Registration element has its own tabs, starting with **Settings**.

Leave **Custom CSS** on the **Advanced** tab as it is. It's code that styles the element. Only change it when nothing else in the Game menu does what you need.

## Set the look of every page in Layout settings

**Layout settings** sets the colours, fonts and loading screen for every page of the gameplay at once. You can still change them on a single page. To open it, select **Layout** in the bar at the bottom of the editor, or press Ctrl+L.

![The bar at the bottom of the Gameplay Editor: the Device previews icons for desktop, tablet and phone, then Navigator, then Layout and Game, both outlined in green.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-04-layout-and-game-buttons.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=5f683484939662cb9dbe5f668573e258)

*Layout and Game, in the bar at the bottom of the editor*

| Tab | What it sets |
| - | - |
| **General** | The colours, background image and button styles of every page. |
| **Font style** | The font, size, colour, line height and weight of each kind of text, such as headings or form fields. You don't have to set them all, and you can change them on a single page. |
| **Preloader and favicon** | The preloader, the image customers see for a second or two while the game loads. It can be your own image with an effect, such as **Pulse**, or a standard dotted or spinning one. The favicon isn't used in the app. |

> [!NOTE]
>
> Select **Save** on each tab before you leave it. Changes in **Layout settings** only apply when you save them.

![The General tab of Layout settings in the Gameplay Editor, with Font style and Preloader and favicon beside it. Under Grid layout, a laptop and a phone each have a width of 100 with % chosen over px, and centre alignment. Under General are Base color #482215, Background color #482215, Text color #ffffff and Button text color #ffffff, each with a colour picker, then an unticked Use different colors for popovers, and an empty Background image field with an upload icon, described as added to the whole campaign, all sections.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-05-layout-settings-general.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=9b9011af70f9b8295f0ac2eb9c490fa6)

*The General tab of Layout settings*

![The Font style tab of Layout settings in the Gameplay Editor. Under Styles are four rows, each with Element, Font type, Text size, Text color, Line height, Font weight, Style and a bin icon: Form fields at size 18 and weight 300, H3 at size 25, line height 28 and weight 800, Content at size 16, line height 20 and weight 700, and H2 in a Racing Sans font at size 40, line height 40, weight 500 and style Uppercase. Add style is below the rows, then a ticked Use these settings for mobile.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-06-layout-settings-font-style.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=6906b10710140310f413f1ad7232ed1b)

*The Font style tab of Layout settings*

![The Preloader and favicon tab of Layout settings in the Gameplay Editor. Under Campaign preloader, Type is Custom image, Custom image holds the path to a logo file, and Custom image effect is Pulse. Keep original size, described as don't downsize the image to fit the format, is unticked. Show a solid overlay behind the preloader is ticked, with Overlay color #000000.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-07-layout-settings-preloader.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=a07715c50be06e6586cfd0d1926d06cc)

*The Preloader and favicon tab of Layout settings*

![An animation of Layout settings in a newer version of the Gameplay Editor, on a cola demo gameplay. On the General tab it shows a Global layout panel with an Enable global layout switch, then Grid layout for desktop and tablet, then Base color, Background color, Text color and Button text color, a background image chosen with Select media, and the Background type list open on Tile, Actual size, Stretch, Contain and Cover. It moves on to Image Overlay, Logo, Font type and Enable scroll indicator, then to the Font style tab with rows for H3, Content and H2, Add style, the Use these settings for mobile switch and a Save button at the bottom.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-08-layout-settings-walkthrough.gif?s=d4d7684165c7ee5ec6e6f7caac08eac2)

*Layout settings in a newer version of the editor, with Save at the bottom of the tab*

## Edit the terms and conditions

Every screen has a button at the bottom that opens the game's terms. You set the button and the terms in two places.

1. On the **Sections** tab, open the Terms and Conditions section and select its button. On the **Content** tab, under **Action on click**, check that **Select action** is **Open popover** and **Select popover** is the Terms and Conditions popover. Change the button's look on **Style**.
2. On the **Popovers** tab, open Terms and Conditions and change its text to match your game. Make sure it says when the game runs, what the prizes are and what the chances of winning are. You can also change the font and the colour of its close button.

![The Gameplay Editor on the Sections tab of the Game Navigator, with the Terms & Conditions section opened out into Row, Column and a selected Button. The phone preview shows a chocolate bar intro screen dimmed, with the Terms & Conditions bar at the bottom outlined in green. On the Content tab of the Game menu, Label is Terms & Conditions, and under Action on click, Select action Open popover and Select popover Terms & Conditions are outlined in green. Below them are Keybinding None, an empty Button ID, Button style Primary and the start of a list of replacement tags.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-09-terms-button.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=4efd6ba66032719972028b999107468f)

*The Terms and Conditions button opens the Terms and Conditions popover*

![The Gameplay Editor on the Popovers tab of the Game Navigator, with the Terms & Conditions popover opened out into Row, Column, an Icon, a Headline and five Text blocks, the second selected. The phone preview shows the popover with a red close button and the heading Terms and conditions, then text naming the retailer that runs the competition and its app, an age limit of 18, a Period paragraph saying the campaign runs from 1 January 2023 to 1 January 2024 and winners are told straight away in the app, and a Winnings paragraph describing a 50 g chocolate bar at 100% discount with 100% winning chances. On the Content tab of the Game menu, Text content holds the Period paragraph, Editor type is Default, and a list of replacement tags follows, from #prize\_id# and #prize\_name# to #sponsor\_url#.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-10-terms-popover.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=8575828bd81d8ef03c2c317af2715beb)

*The Terms and Conditions popover, with the game's period and prize*

## Lead customers from the Intro page to the game

The Intro page comes after Registration. It presents the prize customers can win, and it can have a video or an animated GIF. [Gameplay add-ons, video and sound](https://help.lobyco.com/business-documentation/activities/games/design-a-game/gameplay-add-ons-video-and-sound.md) explains how to add them.

Every page that isn't the Game page or a Winner or Loser page needs a button or image that takes customers to the next page. Select it, and set **Action on click** on its **Content** tab.

| Field | Set it to |
| - | - |
| **Select action** | **Go to flow page** |
| **Select flow page** | **Go to next flow page** |

Customers then go to the next page in the order the pages have on the **Flow pages** tab.

![The Gameplay Editor on the Flow pages tab, with Intro Screen opened out and its fourth Image block selected. The phone preview shows the chocolate bar intro with the text Play now and you can win a Snickers clasic 50g and a Start game button outlined in green. In the Game menu, the image's Image source, Image size Custom and Width 250 px are above the Action on click panel, where Select action Go to flow page and Select flow page Go to next flow page are outlined in green.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-11-intro-next-flow-page.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=f9697cd7b98a2574ede578154998a54b)

*The Start game button on the Intro page goes to the next flow page*

## Check the Game page and its game settings

The Game page holds the Game block, which is the game customers play. A gameplay has one Game block. Once it's on a page, it no longer shows under **Add-ons** → **Games** when you add a block.

On the Game page itself, the Game menu only changes the block's padding and display. The settings of the game itself, such as its pictures, are in **Game settings**. To open it, select **Game** in the bar at the bottom of the editor, or press Ctrl+G. The settings depend on the game type:

* [Luck game settings](https://help.lobyco.com/business-documentation/activities/games/types-of-games/luck-game-settings.md)
* [Skill game settings](https://help.lobyco.com/business-documentation/activities/games/types-of-games/skill-game-settings.md)
* [Knowledge game settings](https://help.lobyco.com/business-documentation/activities/games/types-of-games/knowledge-game-settings.md)

![The Gameplay Editor on the Flow pages tab, with the Game page opened out into Row, Column, two Image blocks and a selected Game block. The phone preview shows a slot machine game for a chocolate bar, with the text Win when you get 3 bars, three reels and a Play button, the Game block outlined in green. The Game menu shows the block's Advanced settings: Margin and Padding for top, right, bottom and left, Width Default, an empty Min height, Addon alignment Default, ticked Use these settings for tablet and Use these settings for mobile, and under Settings a Z-index of 10 and an empty CSS ID.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-12-game-page.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=5dfe6100b51616d38a38644e8623ba8c)

*The Game page, with the Game block selected*

## Close the game from the Winner and Loser pages

The Winner and Loser pages tell customers whether they've won. Each has a button, text or image that closes the game. When a winner closes it, the app shows them their prize, such as a coupon.

The templates set this up for you. Only change it to send customers somewhere else, such as a website. Select the button, text or image, and check **Action on click** on its **Content** tab.

| Field | Set to |
| - | - |
| **Select action** | **Go to URL** |
| **URL** | `#redirectUrl#` |
| **Target** | **Same window** |

![The Gameplay Editor on the Flow pages tab, with the Win page opened out and its fourth Image block selected. The phone preview shows Congratulations, You won a bar of Snickers clasic 50g, a picture of the bar and an Accept prize button outlined in green. In the Game menu, under Action on click, Select action Go to URL, URL #redirectUrl# and Target Same window are outlined in green, with Keybinding None below.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-13-winner-page-redirect-url.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=f579876ce73f176958cefcebc0e178e4)

*The Accept prize button closes the game*

The Winner and Loser pages also close the game on their own when a customer does nothing. Select the page itself in the Game Navigator. Its **Action** panel holds the automatic redirect, which the templates also set up.

| Field | Set to |
| - | - |
| **Redirect user** | Ticked |
| **Redirect** | **Redirect to url** |
| **Redirection URL** | `#redirectUrl#` |
| **Redirect after x seconds** | How long to wait, such as 20 seconds |
| **Redirect target** | **Same window** |

![The Gameplay Editor with the Win page itself selected in the Game Navigator, its label shown in blue above the phone preview of Congratulations, You won a bar of Snickers clasic 50g and an Accept prize button. In the Game menu, ticked Use these settings for tablet and Use these settings for mobile are above the Action panel, where Redirect user is ticked, Redirect is Redirect to url, Redirection URL is #redirectURL#, Redirect after x seconds is 20 seconds and Redirect target is Same window, all outlined in green. A Tags panel follows.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-14-winner-page-automatic-redirect.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=8362c0414b9ddc07b29a9baaeb8bd47b)

*The Win page closes the game on its own after 20 seconds*

## Link out of the game

A button, image or text can open a website. In the link, replace `https://` with `lobyco://`, so `https://www.example.com` becomes `lobyco://www.example.com`. Then set **Action on click** on the element's **Content** tab.

| Field | Set to |
| - | - |
| **Select action** | **Go to URL** |
| **URL** | Your link, starting with `lobyco://` |
| **Target** | **Same window** |

> [!WARNING]
>
> Always start the link with `lobyco://`. The app doesn't handle a link that starts with `https://` properly, and the game's statistics then come out wrong.

## Add transitions

A transition animates an element as it appears, which draws customers' attention to it.

1. Select the element.
2. Open the **Advanced** tab in the Game menu and scroll down to **Transitions**.
3. In **Enter transition**, pick an effect, such as a fade, zoom, rotate, flip or bounce.
4. In **Transition duration**, set how long the animation takes.
5. In **Transition delay**, set how long to wait before it starts.

For example, delay a **Continue** button, so customers read the rules before they move on.

![An animation in the Gameplay Editor, on the intro page of a cola demo gameplay, with the image of a can selected. The Advanced tab of the Game menu scrolls past Settings, with Z-index, CSS ID and CSS class, Positioning and Visibility condition, down to Devices and Transitions. Enter transition is set to Zoom in, then to Rotate in - Down Right. Transition duration changes from 1000ms to 700ms, and the Transition delay list opens with Instant, then 100ms to 900ms. Custom CSS is below.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-15-transitions.gif?s=6a272ca41166ef615e28df80780f12b5)

*Transitions, on the Advanced tab of an image*

## Preview on other devices

1. Select **Device preview** in the bar at the bottom of the editor.
2. Pick a device from the list, such as an iPhone 8.
3. To see every device at once, select **Display all device sizes**, then scroll down. **Hide all device sizes** takes you back.

Design for a small screen first, such as an iPhone 8. If buttons fit there without scrolling, the page also works on bigger screens.

![An animation in the Gameplay Editor, on the Win page of a cola demo gameplay that says Congratulations, You won a Coca Cola 330ml, with a Thank you button. The device list opens with iPhone 8 (375×667), iPhone X (375×812), iPhone 11 (414×896), iPhone 13 (428×926), iPhone 13 Pro (428×926), Pixel 2, Pixel 5, Galaxy S5 and Pixel 6 Pro. Then Display all device sizes shows the same page side by side on an iPhone 8, an iPhone X and an iPhone 11, with Hide all device sizes above them.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-16-device-preview.gif?s=9e4bf55f5ed550c9f7f2dc8bb55861d0)

*Device preview, one device at a time or all at once*

## Undo changes with Revisions

Each page keeps its earlier versions, so you can go back to one.

1. Select the page in the Game Navigator.
2. Open the **Revisions** tab in the Game menu.
3. Select **Preview** beside a revision to see it.
4. Select **Use** to go back to it, and confirm.

Switching between revisions doesn't lose any of them. To see who made a revision, and when, hover over its date and time.

![An animation in the Gameplay Editor, with the Intro page of a cola demo gameplay selected. The Revisions tab of the Game menu shows a note that Revisions is in beta, then a list of dates and times from 24-11-2024, the newest marked Current revision and the rest with a Preview button. Hovering over one time shows who created it, and selecting Preview swaps its button for Cancel and Use. Selecting Use opens a dialog that asks Are you sure?, saying you're about to roll back the page content and settings to a previous version, with No, cancel and a red confirm button.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-17-revisions.gif?s=6f321fc5afd6fb09e8dd84766ac6d196)

*Revisions, with Preview and Use on each earlier version*

## Refresh the gameplay

Most changes in the editor are kept as you make them. When you've finished, go back to **Gameplay design** and select **Refresh**, so customers see your changes straight away. [Design a game](https://help.lobyco.com/business-documentation/activities/games/design-a-game#design-the-gameplay-in-the-gameplay-editor) explains how.

To check it worked, play the game in the app as a test customer and look for your changes. [Test before customers play](https://help.lobyco.com/business-documentation/activities/games/create-a-game.md#test-before-customers-play) explains how to limit a game to test customers.

## Related

* [Design a game](https://help.lobyco.com/business-documentation/activities/games/design-a-game) — create the gameplay in Gameplay design, refresh it and get its link.
* [Show each winner their reward screen](https://help.lobyco.com/business-documentation/activities/games/design-a-game/show-each-winner-their-reward-screen.md) — give each reward in a game its own winning screen.
* [Ask winners a maths question](https://help.lobyco.com/business-documentation/activities/games/design-a-game/ask-winners-a-maths-question.md) — set the question some markets need before a prize.
* [Images and fonts for a gameplay](https://help.lobyco.com/business-documentation/activities/games/design-a-game/images-and-fonts-for-a-gameplay.md) — the sizes and files the editor takes.
* [Gameplay add-ons, video and sound](https://help.lobyco.com/business-documentation/activities/games/design-a-game/gameplay-add-ons-video-and-sound.md) — add videos, sound and extra blocks to a page.
* [Game types](https://help.lobyco.com/business-documentation/activities/games/types-of-games) — the 17 types and what customers do in each.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.