Coin Game Example
ADD GAME TERMINAL
1) Choose Joystick Icon to toggle into build mode
2) Open the Assets Catalog (cube icon)
3) Choose Start (Game) Terminal from catalog
4) Place Game Terminal in Scene ("E" button)
5) Edit Game Terminal (hover & Press 1)
6) Add Game Component (Click "Advanced", Select "Game" from drop down)
7) Choose Game Component (Click)
8) Choose SOLO Game Type (click "update")
9) Choose "Player Variables"
10) Add player variable "coins" with a value of 0
11) Click the "Back Button" (top right hand corner)
12) Click "Levels"
13) Add Level
14) Click Pencil to edit
15) Choose Level Spawn and move location
16) Click the "Back Button" (top right hand corner)
17) Change Level Status to LIVE
18) CLICK UPDATE
19) Close Edit Game Terminal
20) Choose Player Variable Entity to edit (stacked vertically above terminal)
21) Choose advanced and add "ACTIONS" Component
22) Choose Actions
23) Add Action -> Number Add
24) For action name, type "Add 1"
25) Set Action value to 1
26) Click Add Action
27) Close Edit Player Variable
ADD UI TEXT
28) Open the Assets Catalog (cube icon)
29) Choose UI Text Object
30) Place UI Text in Scene ("E" Button)
31) Edit UI Text (hover & Press "1")
32) Choose Advanced -> UI Text Component
33) Change UI Style to ASSET PACK
34) Change Label to COINS
35) Change Text Data to COUNTER
36) Choose Coin Variable Entity for the Counter Entity (Game Start Level Entity?)
37) Type '2' for TOP
38) Type '15' for RIGHT
39) Hit UPDATE
40) Click the "Back Button" (top right hand corner)
41) Click "Add Trigger"
42) Add On Enter Scene Trigger
43) Add Decision
44) Click Actions
45) Add Action
46) Choose "UI Text" Entity
47) Choose "Show Text" Action
48) Close Edit UI Text
49) Choose Crane Icon to toggle Play Mode
50) Walk off scene to "reset" scene, and walk back on to see UI TEXT
51) Choose Joystick to go back to BUILD MODE
ADD COIN
52) Click the In World Builder icon button
53) Click the "Catalog" tab (2nd from the top)
54) search for "Coin 01"
55) Click the "+" button for the Coin 01 asset
56) Click the "Save" button in the bottom left hand corner
57) Click the "Update" button in the top left hand corner
58) When your world is successfully updated, refresh Decentraland
59) Open the Assets Catalog (cube icon)
60) Choose "Coin 01" Asset
61) Place Coin in Scene ("E" button)
62) Edit Coin (hover & Press "1")
63) Go to Advanced Component
64) Add "Actions" Component from dropdown
65) Choose Action Component
66) Click "Add Action"
67) Choose Entity Remove Action
68) Type in an action name "remove Coin"
69) Click ADD ACTION
70) Click "Back"
71) Add "Triggers" Component from the drop down
72) Click "Triggers"
73) Click "Add Trigger"
74) Select "On Pick Up" Trigger
75) Click "Add Trigger"
76) Click "Add Decision"
77) Click "Actions"
78) Select "Coin 01" Entity and the "Entity Remove" Action from the drop down
79) Click "Add Action"
80) Select Coin Variable Entity and Number Add Action
81) Close Edit Coin
82) Switch to "Play Mode"
83) Walk off scene to "reset" scene, and walk back on to see UI TEXT
84) Choose Joystick to go back to BUILD MODE
TEST GAME
Last updated