This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum 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.
Locked
User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 27

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.
4 x

User avatar
Odex64
Superfighter
Superfighter
Posts: 172
Joined: Sat Jul 29, 2017 12:39 pm
Title: Content Creator
SFD Account: Odex64
Started SFD: PreAlpha
Location: Italy
Gender:
Age: 24

Post by Odex64 » Tue May 19, 2020 9:39 am

I know this is an old topic, but I found that very useful. Thanks JakSparro, as always! :D
1 x

Locked