Skip to content

Threads Module

syeyoung edited this page Jul 16, 2020 · 1 revision

Threads Module

Thread module contains blocks defined in controls tab related to cloning. Textratch renamed these into threads.

Threads module can be imported via

Require "Threads";

Defined Functions

Threads::createNewThread() : create new Thread (clone)

Threads::getCurrentThreadIndex() : get Index of current thread running this script (Expression only)

Threads::getTotalThreads() : get number of total threads created (Expression only)

Threads::deleteThisThread() : delete this thread

Defined Events

Threads::onThreadCreation : event that gets called when thread gets created in the same sprite

Clone this wiki locally