Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Unofficial Coroutine class in Script API

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
JakSparro98
Superfighter
Superfighter
Posts: 329
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 20

Unofficial Coroutine class in Script API

Post by JakSparro98 » Fri Aug 25, 2017 3:08 pm

Hi all, I'm back with other goodies for the SFD script API world.

While I'm continuing writing the AI script, hoping to complete it before Gurt introduces his own, just to prove to him the power of his same script engine, I decided to write a class to let me and other scripters to write in simple manner their own coroutines.

A coroutine is like a function that has the ability to pause execution and return control to the game but then to continue where it left off on the following frame.

Download script

Documentation:
► Show Spoiler
This thread is open to suggestions, advice, explanation... tell me your ideas and I will update the post with your help.
1 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest