LogoLogo
一般アカウントプレイヤーオーナークリエイターThe Sandbox ウェブサイト
クリエイターページ
クリエイターページ
  • 🎆クリエイター向けコンテンツのご紹介
  • 🟦制作の基本
    • 🟦LAND の使用方法とサイズ
    • 🟦アセットと装備品
    • 🟦アバターとキャラクター
    • 🟦外観とイメージ
    • 🟦ロジックの基本
    • ❓ゲームプレイに関する質問
    • ❓アセットに関する質問
  • 🪙収益化
  • Game Maker
    • ✨体験の制作
    • 🔰初心者向けガイド
    • 📖ドキュメント
      • Game Maker ホーム画面
      • 体験の管理
      • コントロールとショートカット
      • 制作に関するメニュー
        • トップバー
          • メニューバー
          • Objective
          • Player
          • Gameplay
          • Debug
        • サイドバー
          • Hierarchy
          • Preset
        • ライブラリとクイックアクセスバー
        • グリッドシステムとスナップツール
        • プロパティパネル
      • 🔹ブロックの使い方
      • 🔹アセットとオブジェクトの使い方
        • ビヘイビアとコンポーネントのパラメーター
        • Tags(タグ)
        • Messages(メッセージ)
      • 🔹Behaviour(ビヘイビア)
        • Actor Property Switcher
        • Advanced Platform
        • Animated Decoration
        • Asker
        • Asset Spawner
        • Basic Platform
        • Bird
        • Citizen
        • Crowd Event
        • Door
        • Farmer
        • Healer
        • Melee Enemy
        • Message Broadcaster
        • Multi
        • Post Process Effects
        • Predator
        • Prey
        • Projectile
        • Replace Asset
        • Spawn Point と Avatar's Feature
        • Soldier
        • Timed Events
        • Void
        • Weather Switcher
      • 🔹Components(コンポーネント)
        • Avatar Checkpoint
        • Avatar Teleport
        • Button
        • Climbable
        • Collectable
        • Defeat
        • Drop
        • Health
        • Image Display
        • Indicator
        • Light
        • NFT Details Display
        • NFT Image Display
        • NFT Sensor
        • Pickable
        • Plant
        • Play Sound
        • Power Up
        • Rarity VFX
        • Raycast
        • Slide
        • Speaker
        • Switch
        • Toggle
        • Trigger Volume
        • Victory
        • Visual FX
      • 🔹ゲームルール
        • ルールタイプ
        • シングルプレイヤーとマルチプレイヤーのロジック
      • 📋クオリティガイドライン
        • Text Formatting
        • 最適化
        • テスト
        • プレイアビリティ
      • パッチノート
        • Game Maker 0.9 (Active)
        • Game Maker 0.8 (Active)
        • 0.7
        • 0.5 [10/02/2021]
        • 0.4 [12/23/2020]
      • 🔩テンプレート
    • 📑クリエイティブガイド
      • 📗ゲームルールガイド
        • 🅿️Point Race
        • 🅿️Collect Points(ポイント集め)
        • 🅿️Time Trial(タイムトライアル)
        • 🅿️Combo(コンボ)
        • 🅿️Hunger(ハンガー)
        • 🅿️Poison(ポイズン)
        • 🅿️Shop(ショップ)
        • シングルプレイヤーとマルチプレイヤーのロジック
      • ⚙️ロジックガイド
        • Climbing
        • Doors & Chests
        • Dialogue Strings
        • Quiz
        • Collectibles
        • Quests
          • Quest System & Indicators
          • Dialogue States for Quests
        • Platforms
          • Button & Platform
        • Victory & Defeat
        • Miscellaneous
        • NFT Inspect
        • Fighting
        • Respawn
      • 🏞️体験ガイド
        • Tower Defense
        • Horror/Backrooms
        • Parkour & Platformers
        • Resource Management
          • Cooking Simulator
        • Survival
        • Action / Adventure
        • Night Club & Sound
        • Virtual Home & Architecture
        • NFT Gallery / In-Game Shop
        • Puzzle Games
        • Social Hubs
        • Simulation
      • 🎲体験デザインテクニック
        • ストーリーデザイン
          • Worldbuilding
          • Storyboard
          • Dialogue
        • アートデザイン
          • Experience Art Concept
          • Asset Curation
          • Blockout Aesthetics
          • Detailing /Dressing
        • 3D 空間レイアウト
          • Rough Base Map
          • Greyboxing / Blockout
        • ゲームデザイン
          • 難易度の設定
          • リスクと報酬
          • Game Loops & Decisions
    • 🎬ゲーム制作ガイド
      • 🟥コンセプト
      • 🟧ブロックアウト
      • 🟨ロジック
      • 🟩アート
      • 🟦QA
      • 🟪ポリッシュ
      • ⬜マーケティング
    • 🧰体験の公開
      • 体験マネージャー
        • Experience Analytics
        • 🧰体験ページ
          • Content Guide
          • Marketing
          • Create an Experience Trailer
          • Player Engagement
        • マップロケーション
        • アセットレビュー
        • GM Compatibility Check
        • アクセス制限
      • Collaborating With Third Parties
      • ❓体験の公開に関する質問
    • 🕘変更履歴
      • Game Maker 0.11
        • 0.11 アップグレードガイド
    • ❓Game Maker に関する質問
  • VoxEdit
    • ✨アセットの制作
    • 🔰初心者向けガイド
    • 📖ドキュメント
      • Navigate VoxEdit Home
      • Controls & Shortcuts
      • 🔹ブロックエディタ
        • ブロックエディタ - メニュー
        • Block Editor Dropdown Menu
        • Block Editor Top Bar
        • Block Editor Tools Menu
        • Block Editor Viewport
        • Block Editor Panels
      • 🔹モデラー
        • Modeler Menus
        • Modeler Dropdown Menu
        • Modeler Top Bar
        • Modeler Tools Menu
        • Modeler Viewport
        • Modeler Panels
      • 🔹アニメーター
        • Animator Menus
        • Animator Dropdown Menu
        • Animator Top Bar
        • Rig: Animator Skeleton & Viewport
        • Motion: Animator Timeline Panel
        • Animator Library & Inspector Panels
      • 🔹テンプレート
      • 📋クオリティガイドライン
        • Asset Types & Collisions
        • Asset Scale
        • Node Efficiency
        • Pivot Point & Alignment
        • アニメーション
        • ビジュアルクオリティ
        • Asset Name & Description
        • Manage Files & Folders
    • 📑クリエイティブガイド
      • 🧍アセットガイド
        • Structures & Landmarks
          • Basic Building: No Entry
          • Animated Building: No Entry
          • Unanimated Building: Player Entry
          • ランドマーク
          • 建物の正面
          • Structure Component Parts
          • Modular Architecture
        • Humanoids & Animals
        • Vehicles
        • 装備品
        • Art: Statues, Paintings
          • Animated Art Screens
          • Statues
          • キネティックアート彫刻
          • Paintings
          • パフォーマンスアート
        • Furniture
        • Platforms
        • Doors, Gates, and Windows
          • Multi Design Door Asset
        • Chests & Other Animated Interactions
        • Plants, Trees
        • Objects, Machines
        • Signs & Text
        • Obstacles
        • フレームアセット
      • 🎨アートテクニック
        • アートアイデア
        • 3D デザイン
          • 🧹Need to Simplify?
          • ✂️Trim All Volumes
          • 🟢Optimize with Texture
          • 🟢Curved Edges: Blocky Style
          • 🟡Break Down Objects
          • 🟡Create Smooth Angled Lines
          • 🟡Circular Shapes: Cross Technique
        • 色とテクスチャ
          • 🪅Colour Choice & Strategy
          • 🧱Textures & Materials
    • 🧰アセットのワークスペースへのアップロード方法
    • 🌟アセットのミントと販売方法
    • 🕘変更履歴
    • 🔓オープンソースアセット
    • ❓VoxEdit に関する質問
  • クリエイター向けプログラム
    • 🏗️Builders' Challenge
      • ルールと参加条件
      • 賞金の獲得と報酬
      • Builders' Challenge 成功のコツ
      • ❓Builders' Challenge に関する質問
    • ℹ️コンテスト
    • 🏆Game Jam
      • ルールとガイドライン
      • 審査と投票
      • 過去の入賞作品
      • ❓Game Jam に関する質問
    • 🏆VoxEdit コンテスト
      • ルールとガイドライン
      • 審査と投票
      • 過去の入賞作品
      • ❓FAQs: Voxel Art Contests
  • 一般
    • 📚The Sandbox ドキュメント
    • 🔄遊んで、作って、稼ごう!
    • 🗺️マップ
    • 🛒マーケットプレイス
    • 🗣️Discord コミュニティ
    • 🔗SNS、お知らせ、ブログ
    • The Sandbox リンク集
    • 📣FAQ(よくある質問)
    • ❓ヘルプ、お問合せ
GitBook提供
LogoLogo

インフォ

  • Discord
  • SNS、お知らせ、ブログ
  • システム状況

プレイ

  • イベント
  • マップ
  • アバター

制作

  • VoxEdit
  • Game Maker
  • コンテスト

所有

  • SAND
  • LAND
  • トークン

Copyright © The Sandbox. All Rights Reserved.

このページ内
  • Game Rules Preset Available
  • Add a Preset
  • Rules Included
  • Rules Logic
  • Object Logic
  • Template Available

役に立ちましたか?

  1. Game Maker
  2. クリエイティブガイド
  3. ゲームルールガイド

Collect Points(ポイント集め)

前へPoint Race次へTime Trial(タイムトライアル)

最終更新 8 か月前

役に立ちましたか?

Game Rules Preset Available

The Collect Points Preset can be used to track scores like enemies defeated or coins collected. Once a certain amount is reached a completion message is sent out.

APPLYING PRESETS TO YOUR EXPERIENCE LOGIC

Presets will only add rules, variables and messages in and out. To create a fully working game mechanic you also need to add assets with behaviours and components to communicate with the Preset.

See an example of applying a Ruleset for a Collect Points mechanic below.

Add a Preset

  1. Click Gameplay in the Top Bar and select the Game Rules tab.

  2. Click Presets in the Island Menu on the left.

  3. Click on a Preset to add it to your grid board.

Visit the page for full documentation, including controls for easy use.

Rules Included

Rules Logic

In this example, every Rule is explained in detail.

You can also right click a Rule on the grid board to view more detailed information about each Logic Box.

Points Counter (Add/Subtract number)

The first rule in the Collect Points preset is a Add/Subtract number rule called Points Counter. This is also the most essential rule, since it is used to modify the Score variable upon receiving a message. It is initially set up to receive the message called Score as its activating Message. This message and a few others are initially created within the experience and can handily be used for the gameplay rules. It is also a message containing a number argument, so it is possible to send more information within this message.

Target variable

The target variable that this rule will change can be changed, but since it is already set to the global Parameter “Score” which was created automatically, it is not necessary to change this field.

Using Message Arguments

To ensure, that this the message arguments work as intended the Value change must be set to Message Argument and then make sure that the argument is set correctly to Points. This means that whenever the Score message is send, its argument will be added to the Score Variable of the gameplay rules.

Message to send when a value is changed

For the next steps it might be helpful to have something react every time the score is modified. This could be a check if the games goal is met or visual effects or sounds that are triggered within the experience. To do this we use the Message to send field. This will already have the message ScoreChanged set up, which will send whenever the Score variable has been modified.

Trigger Message on Amount (Compare numbers)

The Send Message On Amount rule is used to compare the current value of the Score variable to another value. This can be useful to define goals like “collect 10 points”. Once this check is true it will send out a message to the experience.

Required Message

Again this message activates the rule and allows for the check to happen. Since we have defined a message when the score is modified in the Add/Subtract number rule, we can reuse that here. This way, every time the score is changed it will also be checked for a reached condition.

Number Variable

This field is automatically set to the Score variable, so we do not have to change anything here.

Condition

There are multiple ways to compare the two values. In this case we want to check if a score has reached ten. Since we want to define varying scores for objectives it would be smart to set the comparison to Greater Equals instead of Equals. In most cases Equals might be sufficient as a default value. Keep in mind that the Number variable is always the first value in this comparison, so Greater means that the number variable (Score) is greater than the fix value (10) in this case.

Compare Value Source

In this example we want to check if the score has reached 10, so we can leave the comparison source at Fix Value. It would also be possible to compare to another variable or to a message argument, but that is not necessary in this case.

Comparison duration

The comparison duration allow us to create an event in the background, that will trigger when a condition is met. This check mark allows us to set the rule to check for the conditon to be met continuously. As we are checking the Amount every time the value is modified though, this will not be necessary here and we can leave it on Once.

Outgoing Message

Last thing to do in this tree is to define a message that will be sent, once the goal is met. In this case we have the predefined message GoalReached.

Set Value (Set number value)

The set number value rule can be used to set the score to a specific number instead of adding a value. In this example it is not used but it could be used for a reset for instance. It is also possible to use variables or message arguments here, but we will leave the value at Fix value and 0 for now. The rest can also be left as is.

Show Info (Set true/false value)

Since our example uses a score that the player wants to keep track of, we have the Set true/false value rule available to toggle the Show Rules HUD variable on and off using the ShowInfoDisplay message. By default the variable is set to true though so this would only be needed if the creator turns that off.

Display the Score (Display variable on HUD)

Since we want to inform players about their current score also need to activate the Display Score rule which is done with the DisplayScore message.

Initially showing the value instead

To display the value initially and not only once it is changed, we can go to the Score variable in the variable list end click and open up the settings for the Score variable.

This will open variables settings where we can change a variables internal and displayed name, its default value and if it is initially displayed.

To initially show it, we will check the “Shown at game start” checkbox in the Heads-Up Display Settings.

Object Logic

In this example we will create a simple collection game, where players collect a number of items with varying score values.

Collectables

We add an asset to the experience and create a collectable Component. The Collect action required can be left at Collision. In the Edit Logic mode we will then set the Collect Message to Score. This is the message that the rule system needs to change the value of the score variable. Since the Score message contains an argument called Score a new field appears where we can set the amount of points this item will give. This will be set to 1.

The next important step is to change the Broadcast Type to Rules so the Component will only communicate with the Game Rules . The whole set up should look like this:

We can than add other assets with the same component but other score values.

Winning Fireworks

Since this is a minigame and should not end the whole experience we will reward the player with a nice firework instead. It is also possible to spawn rewards, open doors or to trigger the Victory screen.

We add a VFX asset and set the visual effect to Fireworks. Enabled at Start will be set to False and Message to TurnON to GoalReached. This way we make sure to not trigger the vfx too early.

If you play the experience now you’ll notice that the Firework is triggered once you collect 10 points, but you do not see any indicator in the UI. This is because we have not toggled the Display Score.

Toggle the Display Score

Currently, every message that is sent to the gameplay rules needs to have a Player as its starting point. This will work with collections, defeated enemies etc but it won’t work for Message Broadcasters that send a message right away. Instead we will use a trigger area that overlaps with the Avatar’s Portal, to make sure the player will trigger it. The Enter Message will be set to DisplayScore and set the Message’s argument to true. In addition we will set the Broadcast Type to Rules as the Game Rules are the only part of the experience, that require this message.

Template Available

📑
📗
🅿️
Game Rules
Game Rules Preset - Collect Points (click to enlarge)