You can add a "Play Again" button to your 'End' screen to encourage participants to replay your game. This is a great way to increase engagement and give users another chance to improve their score on the leaderboard.
Step 1: Add and Configure the Button
- Navigate to the 'End' screen of your campaign in the editor.
- Click the "+ Add" button to add a new element and select the 'Play Again' element.
- In the button's settings, find the 'Click event' section.
- Select the option labeled "New Game". This configures the button to restart the campaign for the user when clicked.
Step 2: Customize the Button's Style
You have two main ways to style your button: creating a standard, text-based button or using your own custom image.
Visuals
This section controls the appearance of a standard, text-based button. You can customize:
- Label: The text displayed on the button (e.g., "Play Again!").
- Font: The font family and size for the label text.
- Color: The color of the label text.
- Background: The main background color of the button.
- Border: The color and thickness of the button's border. You can toggle the border on or off.
- Radius: The roundness of the button's corners.
Using an Image as a Button
For a fully custom look, you can use your own image as the button.
- First, enable the "Display button as image" toggle.
- Upload your image.
- You can then adjust the image's alignment, size, and margins.
The "New Game" function will apply to the image, making the entire image a clickable "Play Again" button.
Tip: Saving Your Style
The 'Save as default' button allows you to save your 'Visuals' settings as the new default button style for your entire Brand, ensuring consistency across all future campaigns.
The 'Save as default' button allows you to save your 'Visuals' settings as the new default button style for your entire Brand, ensuring consistency across all future campaigns.