Construct 2 Function Scheduler
A downloadable Plugin
Download NowName your own price
This is a simply Construct 2 plugin that aims to make asynchronous code (like Unity Coroutines) possible in Construct 2.
It's super easy to use!
There are 3 main actions:
- Enqueue Function: Adds the function call to a "Cost Cue" and when the plugin determines there is bandwidth to run the function, it will be called. This allows you to prioritize some functions, while also ensuring that not too many heavy computations happen at once. The system automatically balances and optimizes performance without leaving any functions dangling.
- For Function: A function that is called every tick, from a specified Start to End, as if the built in for loop and function call were merged.
- Do-While Function: A function that is called every tick until it is broken out of using the Break Loop action, as described below.
And 2 utility actions:
- Break Loop: Breaks out of the current For/While loop. Works the same as System->Stop Loop, just with "proper" naming.
- Delay: Delays the next iteration of the current loop by n ticks.
Coming soon:
- For-Each Function: A function that let's you choose the number of instances are iterated per tick, essentially processing instances of the type in batches, staggered over time. Loops forever until broken using Break Loop, so only intended to be called one time until it is no longer needed.
- Break Function: Finds the most recently called function with the given name and breaks it, can be called anywhere, and useful for complex chaining of async events.
- Wait For Signal: Like Delay, but waits until a signal is called to allow the next iteration of the function loop to occur.
| Published | 23 hours ago |
| Status | Released |
| Category | Tool |
| Author | Cairo Creative Studios |
Download
Download NowName your own price
Click download now to get access to the following files:
cairo_function_scheduler.zip 9.9 kB
