TRIHAN'S PROFILE
Search
Filter
Sidhe Quest
I made this in 2 days for an event, shaun, it's not like it took vast amounts of development time away from my schedule. :P
Female protagonist games with excellent writing/story?
Kinetic Cipher was amazing. Brickroad is one of the greatest dungeon designers the community's ever had.
Awful haikus
Awful haikus
Awful haikus
RETROMANIA!
[RMMV] Script call for Wait?
MV does it slightly differently. The wait command simply sets a _waitCount property, and in the update function if _waitCount is greater than 0 the interpreter breaks out of its infinite while loop (meaning the interpreter will stop running for the duration of the wait).
If you want to execute a wait using a script command, it's pretty much a simple matter of setting the _waitCount property of the map/troop interpreter to the number of frames you want the wait to last for. (the interpreter actually has a function called wait, which takes duration as a parameter, which does exactly this).
As an aside, Marrend, quick explanation on Fiber: it's sort of like a thread but it's not *true* concurrency. A Fiber is a block of code that you can pause and resume at will. It will not run until the first time it's resumed, and each time you resume it, it will simply continue where it left off when you last yielded. Fiber.yield causes the Fiber to yield control to the code that resumed it.
If you want to execute a wait using a script command, it's pretty much a simple matter of setting the _waitCount property of the map/troop interpreter to the number of frames you want the wait to last for. (the interpreter actually has a function called wait, which takes duration as a parameter, which does exactly this).
As an aside, Marrend, quick explanation on Fiber: it's sort of like a thread but it's not *true* concurrency. A Fiber is a block of code that you can pause and resume at will. It will not run until the first time it's resumed, and each time you resume it, it will simply continue where it left off when you last yielded. Fiber.yield causes the Fiber to yield control to the code that resumed it.