In World Builder Wiki
  • Welcome
  • Getting Started
    • Getting Started
      • Initialize your IWB World
      • Jump Into your IWB World
      • Creating a New Scene
      • Add Assets to Your Catalog
      • Updating Your IWB World
      • Placing an Asset
      • Editing an Asset
      • Export to Genesis City
  • Building
    • Building
      • Asset Catalog
        • Smart Items
          • Audio Stream
          • Audius Playlist
          • Audius Song
          • Basic Plane
          • Basic Sphere
          • Click Area
          • Dialog
          • Empty Entity
          • Image
          • Image Playlist
          • IWB Live Show
          • Leaderboard Component
          • NFT Frame
          • NPC Avatar
          • Path System
          • Quest System
            • Quest Example
          • Rewards
            • Decentraland Rewards
          • Text (3D)
          • Trigger Area
          • UI Image
          • UI Text
          • Video
          • VLM Connector
      • Build Modes
      • Custom Asset Uploader
      • Editing Assets
        • Advanced
          • Actions
            • Actions Batch
            • Actions Random
            • Animation Start
            • Animation Stop
            • Audio Play
            • Audio Stop
            • Audio Stream Play
            • Audio Stream Stop
            • Audius Track Play
            • Audius Track Stop
            • Blockchain Verify
            • Click Area Disable
            • Click Area Enable
            • Delay Start
            • Delay Stop
            • Dialog Hide
            • Dialog Show
            • Disable Trigger Area
            • Entity Clone
            • Entity Place Player Position
            • Entity Remove
            • Entity Set Position
            • Entity Set Rotation
            • Entity Set Scale
            • Entity Visibility Change
            • Game End
            • Game Start Attempt
            • Level Advance
            • Level End
            • Level Load
            • Level Lose
            • Level Win
            • Loop Start
            • Loop Stop
            • NFT Dialog Popup
            • Notification Hide
            • Notification Show
            • Number Add
            • Number Set
            • Number Subtract
            • Open Link
            • Path Follow
            • Physics Disable
            • Physics Enable
            • Player Attach
            • Player Camera Force
            • Player Camera Force Remove
            • Player Detach
            • Player Emote
            • Player Equip Weapon
            • Player Lock
            • Player Move
            • Player Teleport
            • Player Unequip Weapon
            • Player Unlock
            • Playlist Play
            • Playlist Seek
            • Playlist Stop
            • Popup Hide
            • Popup Show
            • Quest Action
            • Quest Start
            • Random Number
            • Reward Give
            • State Set
            • Text Set
            • Trigger Area Disable
            • Trigger Area Enable
            • Tween Start
            • Tween Stop
            • UI Image Hide
            • UI Image Show
            • UI Text Hide
            • UI Text Show
            • Vehicle Enter
            • Vehicle Exit
            • Video Play
            • Video Stop
            • Video Stream Start
            • Video Stream Stop
            • Volume Down
            • Volume Set
            • Volume Up
          • Avatar Shape
          • Billboard
          • Parenting
          • Counters
          • Game
            • Coin Game Example
          • GameItem
          • Multiplayer
          • NPC
          • Physics
          • Pointers
          • States
          • Triggers
            • On Access Denied
            • On Access Verified
            • On Attempt Start Game
            • On Click Image
            • On Clone
            • On Counter Change
            • On Delay
            • On Enter
            • On Enter Scene
            • On Equip Weapon
            • On Game Start
            • On Game Start Countdown
            • On Global Click
            • On Input Action
            • On Join Lobby
            • On Leave
            • On Leave Scene
            • On Level Asset Loaded
            • On Level End
            • On Level Loaded
            • On Load Scene
            • On Loop
            • On Physics Disabled
            • On Physics Enabled
            • On Pickup
            • On Playlist Change
            • On Quest Complete
            • On Raycast Hit
            • On Scene Tick
            • On State Change
            • On Tween End
            • On Unequip Weapon
            • On Unload Scene
            • On Vehicle Accelerate
            • On Vehicle Decelerate
            • On Weapon Shoot
          • Vehicle
        • Animator
        • Audio
        • GLTF
        • Material
        • Mesh Collider
        • Mesh Renderer
        • Name
        • Transform
        • Text
        • Visibility
        • Hover Options
          • Edit
          • Copy
          • Copy in Place
          • Grab
          • Delete
      • Scene Assets Window
        • Scene Information Window
          • Info
          • Access (scene)
          • Size
          • Parcels
          • Spawns
          • Export
      • Snap to Grid
  • IWB Window
    • IWB Window
      • Worlds
        • Current World
        • My Worlds
        • All Worlds
      • Catalog
      • Create
        • Scenes
      • Settings
      • Info
        • Version
        • Help
          • Tutorials
          • Feedback
        • Assets
        • Access (world)
      • Audius
        • Search
        • Trending
        • Explore
        • Moods
        • Now Playing
  • User Interface
    • User Interface
      • In World Builder UI
        • In World Builder Window
        • Build/Play Mode UI
        • Snap to Grid UI
        • Upload Asset UI
        • Scene Assets UI
        • Quests UI
        • Minimap UI
        • Notifications UI
        • Dialogs UI
      • Decentraland's UI
        • Go To Genesis City
        • Decentraland Social Settings
        • Decentraland Scene Rating
        • Decentraland's Camera Button
        • Decentraland's Avatar Icon
  • FAQs
    • FAQs
  • Links
    • Links
      • In World Builder
        • IWB's Builder World
        • Twitter
        • Discord
        • Github
        • Grant Proposals
        • Media & Press
      • Last Slice Studios
      • Decentraland Official
        • Decentraland Docs
        • Decentraland Blog
      • Audius Official
Powered by GitBook
On this page
  1. Building
  2. Building
  3. Editing Assets
  4. Advanced
  5. Game

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

PreviousGameNextGameItem

Last updated 8 months ago