Process
The Process plugin is specifically designed to implement asynchronous and synchronous tasks in processes, for games built in Construct 3 and Construct 2.
The Process plugin implements asynchronous and synchronous tasks where the engine awaits to complete tasks without interfering or halting the application's current workflow.
Tasks act like individual progresses in a process, each task has its own completion represented in percentages. While the overall progress of all tasks in a process is represented in the process' total progress percentage.
There can also be multiple processes running all at the same time, efficiently without listening to value changes but only through task progress callbacks. Process and task progress and completions are all handled in event trigger callback conditions.
Introduction
The Construct Master Collection has plugins that extends the editor and engine features of both Construct 3 and Construct 2.
Please click here to learn more about Game.
Features
The Process plugin is specifically designed to implement asynchronous and synchronous tasks in processes, for games built in Construct 3 and Construct 2.
The Process plugin implements asynchronous and synchronous tasks where the engine awaits to complete tasks without interfering or halting the application's current workflow.
Tasks act like individual progresses in a process, each task has its own completion represented in percentages. While the overall progress of all tasks in a process is represented in the process' total progress percentage.
There can also be multiple processes running all at the same time, efficiently without listening to value changes but only through task progress callbacks. Process and task progress and completions are all handled in event trigger callback conditions.
The Process plugin can be used for awaiting task implementations, including extending the Construct 3 memory management's preloading features to work alongside additional custom preloads.
Here are some of the game features of the game plugin:
Asynchronous tasks
Synchronous tasks
Special tasks with callbacks
Construct 3
Using dedicated callback condition event triggers.
Using the editor's official Function object.
Construct 2
Using the editor's official Function object.
Efficient and fully optimized for performance.
All tasks are run, progressed and completed only when progress actions are called.
No background listeners are used, thus the plugin is not running when there is no task called or when no task is running.
Percentage based progress of tasks.
Percentage based progress of processes.
Support for Construct 3's memory management features, for preloading.
Support to integrate custom preloads in Construct 3's memory management feature.
Well maintained and fully tested for production release.
For more information about game project features, please click here to read the introductory lessons to Game.
Platform Integration
Here are some of the platforms that are natively supported:
All platforms supported by Construct 3.
All platforms supported by Construct 2.
Web
Mobile Web
Desktop
Android
iOS
Build Support
Here are some of the supported build options:
Web
Desktop
NW.js
Windows (WebView2)
macOS (WKWebView)
Mobile
Android Studio
Xcode
Phonegap
Construct 3 Build Service
Facebook Instant Games
Playable Ad
Construct Arcade
Editor Features
Here are some of the features in the Construct editor:
Construct 3
Construct 2
How to use?
It is easy to use the Process plugin, you will only need to follow the steps below.
1. The first step is to add the Process object into the project.
2. The next step is to go to the Properties Bar while the Process object is selected.
5. If the Debug Mode property is enabled, the application will log information in the console. This is useful for debugging tasks and processes status.
Documentation
There is currently nothing to show, we will add more in the future.
Scripting Interface
The Process object has support for Construct 3's scripting feature.
Scripting interface documentation of the Process object.
Construct 3's scripting documentation.
Actions, Conditions & Expressions
Actions
The following action groups:
Task Manager
Process
Task Manager
Add Task - Add a task to the next process.
Task - The task name.
Add Special Task - Add a task to the next process with call task function features.
Task - The task name.
Function Name - The function name from the Function plugin.
Order - The order the special task functions are called. "Asynchronous" will run all functions without waiting for the other tasks to finish; while "Synchronous" will wait for the previous task to finish before calling the next one.
Set Task State - Set the task completion percentage from a process.
Process - The process name which holds all tasks.
Task - The task name.
Percentage - The completion percentage of the task. Value from "0" to "100".
Process
Start Process - Start the process and include all the recent added tasks.
Process - The process name which holds all tasks. You can leave this blank for a single global process.
Conditions
The following condition groups:
Task Manager
Process
Task Completion
Progress
Process Completion
Task Manager
Has Task - The condition to check if a task exists in the process.
Process - The process name which holds all tasks.
Task - The task name.
On Task Function - Triggered if a Special Task function is called after starting the process. [Workaround after the built-in Functions feature.]
Function Name - The name of the function called from a Special Task.
Process
On Start Process - Triggered when a progress has started.
Process - The process name which holds all tasks.
On Any Start Process - Triggered when any process has started.
Is Processing - Check if a process is undergoing.
Process - The process name which holds all tasks.
Is Completed - Check if a process has been completed.
Process - The process name which holds all tasks.
Task Completion
On Task Completed - Triggered when a task has completed from a process.
Process - The process name which holds all tasks.
On Any Task Completed - Triggered when any task has completed from a process.
Progress
On Progress - Triggered when a progress is made from a task on a process.
Process - The process name which holds all tasks.
On Any Progress - Triggered when a progress is made from a task on a process.
Process Completion
On Completed - Triggered when a task has completed from a process.
Process - The process name which holds all tasks.
On Any Completed - Triggered when any task has completed from a process.
Expressions
The following expression groups:
Task Completion
Progress
Task Completion
CurrentTask - Return the current task "On Task Completed".
Process - The process name which holds all tasks.
CurrentPercentage - Return the current task percentage "On Task Completed".
Process - The process name which holds all tasks.
CurrentFunction - Return the current task function name "On Task Completed", if available.
Process - The process name which holds all tasks.
Progress
CurrentProcess - Return current process name "On Progress".
TotalPercentage - Return the current task percentage "On Progress".
Process - The process name which holds all tasks.
Showcase
The Process plugin can be used for awaiting task implementations, including extending the Construct 3 memory management's preloading features to work alongside additional custom preloads.
Construct 3
Construct 2
Game Projects
Instructions Kit
Specifications
-
Instructions - The game project contains instructions and steps on how to use the addon and its features.
-
Action, Conditions and Expressions - It covers the implementation of each action, condition and expression.
-
Tips and Tricks - It provides some tips and tricks on the recommended ways of using the addon.