Introduction
This article will explain how to edit the different dynamic elements and values in the "Scratchcard Game" sample experience. It will not explain how to edit the overall design.
Simple Scratchcard
In this scene we use a Random From List interface asset to choose a point value for the winner. If you look at the properties of the interface asset “Random From List - Scratchcard”, you will see all possible point values. You can change them to the values of your choice.
This interface asset is set to change its value whenever the "Try Again" button is pressed.
Multiple Item Scratchcard
This example is a bit more complex as we use different interface assets to handle the logic behind this game.
How to use different images in the scratch cards?
To edit the images and replace them with your own you will need to open and edit the Excel file referenced by the Excel interface asset. It’s this Excel spreadsheet that serves as a data feed for the 8 scratch card items.
- Right-click the “Scratchcard Combinations” Excel
interface asset in the Interface Assets panel and select
“Open file location”.
-
Go into the “Images” folder and replace the images with your own. Use the names of the original images if you want to avoid editing the spreadsheet itself.
-
[Optional] To change image names, right-click the “Scratchcard Combinations” Excel interface asset in the Interface Assets panel and select “Edit in Excel”. Update the file names everywhere they appear.
How to change the order of images displayed
An image order is selected randomly from 120 possible combinations. You can edit/remove existing combinations or add your own.
- Right-click the “Scratchcard Combinations” Excel
interface asset in the Interface Assets panel and select
“Edit in Excel”.
- Change/delete existing rows and/or add new rows
- If the total number of rows is modified, change the "Maximum" property of the “Number Generator - Scratchcard” interface asset to match. For example, if you change the number of possible combinations to 30, you will need to update the "Maximum" property value to 30 to ensure a blank row is never referenced.
Comments
0 comments
Article is closed for comments.