Playturbo Help Center
CN
  • 😃Welcome to Playturbo
    • Login Guide
    • Subscribed Users-Page Guide
    • Customized Users-Page Guide
  • 💡Playable Tools-Feature Changer
    • Playable Creation Flow
      • 💻Template Feature Creation-Case Study Video
    • How to create a project/version
      • Subscribed Users-Create a project
      • Customized Users - Create a version
    • Feature Changer-User Guide
      • Editing Page Module Intro
        • Parameter Settings Area
          • Parameter Type Intro
          • Multi-language Configuration and Translation
        • Work Preview Area
        • Project Operation Area
          • Feature Changer - Download&Apply
      • Special Feature:3D Templates
        • 3D Templates - Basic Feature Overview
        • 3D Model Order
    • Feature Changer-FAQ
      • Asset Replacement Issues
      • Material Effect Issues
  • 💡Playable Tools-Content Editor
    • Playable Creation Flow
      • 💻Blank Canvas - Interactive Endcard
      • 💻Blank Canvas - Fixed-step Playable
      • 💻Template Content Creation - Case Video
    • Work Creation-Create a New Project
    • WORK CREATION-IMPORTANT NOTICE⚠️
    • Content Editor-User Guide
      • Editing Page Module Intro
        • Top Asset Library
          • Project Assets
          • Asset Library
            • Public Asset Library
            • My Asset Library
          • Interactive Area
          • Presets Library
          • Global Variables
          • Gameplay Template
        • Scene Area
          • Global Settings
          • Scene
        • Layer Area
        • Quick Access Area
        • Parameter Setting Area
          • Global Settings
            • Adjustment of permanent content
            • Multi-language Configuration and Translation
          • Gameplay Parameters - Scene Parameters
          • Scene setting - Scene Parameters
          • Exterior - Layer Parameters
            • Image parameters
            • Sequence parameters
            • Spine Parameters
            • Text parameters
            • Particle Parameters
              • Particle Thumbnail
              • Play Settings
              • Particle Parameters
              • Physics Parameters
            • Video parameters
            • Audio parameters
          • Animation - Layer Parameters
          • Event - Common Parameters
            • Trigger Event
            • Response Event
          • Screen adaptation
        • Work Preview Area
          • Preview Switch
          • Package Size Estimation
          • Quick Positioning
          • Canvas ruler and reference line
        • Project Operation Area
          • Preview
          • Save
          • Content Editor - Download&Apply
      • Component & Quick Layout
        • Match Lines Component
        • Draw Lines Component
        • Erase Component
        • Mask Component
        • Carousel Component
        • Quick Layout-Grid Board Layout
        • Quick Layout-Parking Layout
    • Content Editor-FAQ
      • Asset Issues
      • Animation Issues
      • Event Issues
      • Adaptation Issues
      • Component Issues
      • Export & Deployment Issues
    • Content Editor-Creation Tips Center
      • Guidelines for Template Content Creation
      • Common Creation Tips
        • Creation Tips - Suggestions for Creation Process
        • Creation Tips - Scene Creation
        • Creation Tips - Assets
        • Creation Tips - Animation Setting
        • Creation Tips - Event Setting
        • Creation Tips - Adaptation
        • Creation Tips - Suggestions for Gameplay
      • Project Self-Check Guide
  • 💡Playable Tools-Video to Playable
    • Playable Creation Flow
      • 💻Video to Playable - Case Study Video
    • Work Creation-New Creation Guide
    • Video to Playable - User Guide
      • Asset Area
      • Storyboard
      • Track Area
      • Parameter Area
      • Preview Area
      • Video to Playable - Download&Apply
  • 💡Video Tools-Video Editor
    • Video Creation Flow
      • 💻Video Editor-Case Study Video
    • Work Production - New Creation Guide
    • Video Editor - User Guide
      • Creative Making - Editing Page Module Intro
        • Assets
          • Asset Library
          • Common Asset Library
            • Common Asset Library Introduction
            • Common Assets Operations
        • Canvas
        • Track
        • Parameter Editing Module
          • Video Parameters
          • Image Parameters
          • Text Parameters
          • Audio Parameters
          • Transition Parameters
          • Filter Parameters
        • Operation bar
          • Export & Download Videos
      • Video Templates
      • Standout Features
        • Batch Production Function(Swap)
          • Production process overview
            • Batch Production-Guide Video
          • Function Step-by-step Intro
            • What is Asset Group
            • Create Asset Group
            • Add assets to Asset Group
            • Add Asset Group to the track
            • Adjust Asset Group Parameters
              • Adjust Asset Group Parameters
              • Adjust Asset Parameters within the Group
            • Swap & Time Sequence Swap
            • Batch Export & Download & Apply
        • Size Adaption(Video Editor)
        • Multi-language Adaption(Video Editor)
        • AI Function
          • AI Removal
          • Intelligent Dubbing
          • Subtitle Intelligent Recognization
          • Intelligent Splitting
  • 💡Video Tools-Layout Template
    • Video Creation Flow
      • 💻Layout Template-Case Study Video
    • Work Production - New Creation Guide
    • Layout Template - User Guide
      • Assets Upload(including Size Adaption)
      • Multi-language Adaption(in common)
      • Standout Features:AI Removal
  • 💡Image Tools-URL to Image
    • Image Creation Flow
    • URL to Image - New Creation Guide
    • URL to Image - User Guide
  • 📒Playturbo-Case Study
    • Playable-Content Editor
      • General Gameplay Cases
        • Basic Tutorial - Template content creation Tutorial
          • Animation Loop-Template content creation Tutorial
          • Two-slides Interactive Videos-Template content creation Tutorial
        • Basic Tutorial - Blank Canvas Tutorial
          • IEC<Animation Loop>Tutorial
          • IEC<Basic Two Options>Tutorial
          • Interactive Videos<Two-slides>Tutorial
          • Interactive Videos<3 Taps>Tutorial
          • Interactive Videos<Two options & endings>Tutorial
          • Interactive Videos<3-step interaction>Tutorial
        • Simple Tutorial - Blank Canvas Tutorial
          • Interactive Videos<Simulating Movement>Tutorial
          • 2D Playable<Choose One from Three>Tutorial
          • 2D Playable<Hide after Clicking on the Item>Tutorial
          • 2D Playable<Drag and Drop to the Specified Position>Tutorial
          • 2D Playable<Click to switch multiple items>Tutorial
      • Elimination & Match Gameplay Cases
        • Grid Board Layout - Template Content Creation
        • <Tile Games> Template Content Creation
        • ⭐<Block Elimination>Blank Canvas Tutorial
        • <Match 3 Dress Up>Blank Canvas Tutorial
        • ⭐<Goods Sort>Blank Canvas Tutorial
        • <Merge New Items>Blank Canvas Tutorial
      • Carousel & Display Gameplay Cases
        • Carousel Component - Blank Canvas Tutorial
      • Parkour Gameplay Cases
        • 3-Step Interactive Video - Blank Canvas Tutorial
        • Parkour & Left-right Select - Template Content Creation
        • 【Couple Flip 1】Video Parkour(split videos)
        • 【Couple Flip 2】Replace Animation Effectt Particle
      • Decoration Gameplay Cases
        • <Dress-up Combination>Blank Canvas Tutorial
        • Dress-up - Blank Canvas Tutorial
      • Chess & Card Gameplay Cases
        • Solitaire - Blank Canvas Tutorial
      • Painting Gameplay Cases
        • Draw Lines Component - Blank Canvas Tutorial
        • Match Lines Component - Blank Canvas Tutorial
        • Erase Component - Blank Canvas Tutorial
        • Mask Component - Blank Canvas Tutorial
      • Lucky Draw Gameplay Cases
        • <Flip Card Reward>Blank Canvas Tutorial
      • Parking Layout Gameplay Cases
        • <Car parking puzzle v1> Template Content Creation
      • Other Puzzle Gameplay Cases
        • <Pull Rings>Blank Canvas Tutorial
        • <Screw Puzzle>Blank Canvas Tutorial
    • Playable-Interactive Video Editor
      • <Ragdoll Fall>Interactive Video Tutorial
    • Video Editor
      • 💻Case Studies
        • 💻Video Batch Production
        • 💻Text Translation
        • 💻Smart Subtitle & Voiceover
  • 📓Other tutorials
    • Creative Insights
      • Creative Insights - Essential Knowledge
        • Tracking Explanation
        • Metrics Explanation
        • Data Timezone Explanation
      • Page Module Intro
        • Overview
        • PL Performance
        • PL Interaction Analysis
          • User Journey Analysis
          • Scene Analysis
      • Creative Insights User Guide: Analysis Approach and Tips
        • General Tracking - Usage Recommendations
        • User Journey - Usage Recommendations
    • Documentation for Project Deployment
      • Authorization of Advertising Accounts and Apply Materials to Advertising Platforms
      • Playable Upload Specifications for Networks
      • Mintegral Creative Operation Guide
      • Mintegral Data Analysis
      • Mintegral Ad Content Policies
    • My Account / My Projects
      • My Projects
        • Project View
        • Export & Download History
      • My Assets
        • Creative Assets
        • Template Assets
        • Clone Voice Assets
      • Account Management
    • Latest News on Playable Templates
    • Playable Ads - Customized Users
Powered by GitBook
On this page
  • 📒What is Global variables?
  • 📒Global variables usage instructions
  • 1. Adding “Variables”
  • 2.Add "Conditon"
  • 3.Add "Response Events"
  • 4.Supplement:Add Multiple "Condition"
  • 📒Examples of Application Scenarios
  • 1.Restricting Trial Interactions
  • 2.Different Results Based on Multiple Choices
  • 📒Global Variables-Teaching Video
  1. Playable Tools-Content Editor
  2. Content Editor-User Guide
  3. Editing Page Module Intro
  4. Top Asset Library

Global Variables

#Content Editor

PreviousPresets LibraryNextGameplay Template

Last updated 6 months ago

Entrance:Top Asset Library>>>Global variables

📒What is Global variables?

  • Global Variables are a special type of event parameter that can be accessed across all scenes, allowing for cross-scene usage (unlike regular events, which are limited to the current scene).

  • By adding global variables, you can trigger the desired response events in different scenes by evaluating the current value of the global variables.

  • The value of global variables can be number, string, or boolean (true or false).

  • Global variables are particularly useful when working with complex gameplay elements where a large number of events need to be set up or when regular events alone cannot achieve the desired functionality. They help simplify the production process by enabling us to handle complexity more effectively.

📒Global variables usage instructions

In essence, we usually need three steps to achieve the output of a global variable:

  • Adding variables

Place the global variable in the appropriate location and set the variable type according to the actual requirements (number, string, or boolean).

  • Adding condition

Add condition to implement "triggering the corresponding response event only when the condition is met."

  • Adding response events

Next, we will proceed with a detailed explanation step by step.

1. Adding “Variables”

1)Add variables:click“Global variables” - “+Add variables”

2)Configure the newly added variables

  • Name: Enter the variable name (customizable).

  • Variable Type: Select the data type, including number, string, or boolean.

  • Initial value: Enter the initial value based on the selected variable data type (the initial value can be any value).

  • Description: Enter a description for the variable (optional).

Attachment:Variable Type Table

illustration
Variable Type
supplement
Operating instructions

Number

Can input any number as initial value

  • Commonly used for calculations, including size comparisons and addition, subtraction, and multiplication.

  • When the variable equals different values, different behaviors can be triggered.

  • For example, clicking an element, the parameter variable accumulates according to the click times, and accumulating different values can trigger different behaviors.

String

Can input any text as initial value

  • Used to pass the value of text attributes. User-entered text can be assigned to parameters and executed with conditions.

Boolean

Can choose between "True" or "False" as initial value

  • Used to pass boolean values. User-selected boolean values can be assigned to parameters and executed with conditions.

2.Add "Conditon"

1)Conditon adds a constraint to the event. The event is triggered when this condition is met; otherwise, the event is not triggered.

2)Conditon can be directly added as a trigger event, or it can be added above any other trigger event.

  • Directly add "Conditon" event: Response events are triggered in real-time in the scene. When the Conditon is true, the response event will be triggered immediately.

  • Add "Conditon" event above other trigger events: Response events are triggered only when a triggering event (such as clicking) occurs in the scene.

Type
Operating instructions
illustration

Directly add "Condition" event

  • Click to add an event

  • Select criteria judgment

  • Add conditions: select global variables, judgment method, comparison variable type, comparison value

  • After selecting, check √ to successfully add the 'Condition Judgment' event

Add "Conditon" Event Above Other Trigger Events

  • Click on the 'Condition Judgment' next to the triggering event

  • Add conditions: select global variables, judgment method, comparison variable type, comparison value

  • After selecting, check √ to add a 'Condition Judgment' event above other triggering events

Attachment: Parameter Table for Condition

illustration
Parameter
Operating instructions

Global variables

Select an existing global variable for Condition

Judgment Method

When the global variable is number, it can be compared by size or equality(left);

When the global variable is string or boolean, it can only be compared for equality,equal to or not equal to(right).

Comparison Variable Type

Select the "current global variable parameter type" or other "global variables" to compare.

Comparison Value

Enter the same type of value to be compared based on the current global variable parameter type.

For example, if the current Condition is a Boolean variable, the comparison value can only be a Boolean value.

3.Add "Response Events"

Response events can perform "Assign the value" of added variables or trigger "response event."

  • "Assign the value": Assign values to variables, change variable values, and trigger different Condition.

  • "Response event": Trigger other response events such as "click" and "jump to the next scene."

Type
Operating instructions
illustration

Assign the value

  • Add Response Event

  • Select [Assign the value]

  • Select global variables, operation methods, and operands, and click Save to save them.

Other Response event

  • Directly add a response event under Condition Judgment

  • Simply select the response event

Attachment: Response Event - Assignment Parameter Table

illustration
Parameter
Operating instructions

Global variables

  • Select existing global variables for assignment.

Operation method

  • When the global variable is a number value, free addition, subtraction, multiplication, and division operations can be performed on the variable (as shown in the figure above);

  • When the global variable is a String or Boolean value, only equality judgment can be performed on the variable (as shown in the figure below);

Operand

  • You can select the parameter type of the current global variable or other global variables for operation;

Operand value

  • Enter the same type of numerical value that needs to be calculated based on the current global variable parameter type.

  • For example, if the current condition is judged as a Boolean variable, the comparison value can only be a Boolean value;

4.Supplement:Add Multiple "Condition"

When multiple Conditions need to be added in a scene simultaneously, there are "and" and "or" relationships:

  • "And": Trigger response events when all conditions are met.

  • "Or": Trigger response events when any one condition is met.

Type
Operating instructions
illustration

And

  • Add other conditions to the existing condition

  • +Add conditions, select global variables, judgment methods, comparison variable types, and comparison values

  • Check Save to save

Or

  • Add a “condition”

  • +Add conditions, select global variables, judgment methods, comparison variable types, and comparison values

  • Check Save to save

📒Examples of Application Scenarios

Having understood global variables and their operational steps, let's delve deeper into the topic by exploring two more examples.

1.Restricting Trial Interactions

When we want to limit the number of interactions during a trial period, such as requiring users to click on a video 3 times before redirecting them to the store:

  • Regular Event: Setting this up can be complex.

  • Global Variable: A simple and quick implementation in three steps.

2.Different Results Based on Multiple Choices

When creating content for gameplay scenarios such as a "Choose One out of Three" situation, where each button option leads to different outcomes:

  • Regular Events: This approach would require the use of four scenes and significantly increase the number of events.

  • Global Variables: By utilizing global variables, you can reduce the number of scenes to two and greatly decrease the total number of events required.

Through the above two examples, it becomes evident that using global variables can significantly reduce the number of scenes and the amount of response events required. This approach helps avoid repetitive production steps and enhances overall efficiency in content creation.

Related content: Creation Tips - Event Setting

📒Global Variables-Teaching Video

👉Click to view detailed case explanations: Dress-up - Blank Canvas Tutorial

💡