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 for ScriptAPI

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: 483
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 20

Unofficial Coroutine class for ScriptAPI

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

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

Back when I was writing my AI script, hoping to complete it before Gurt introduced 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.
2 x

Post Reply