Scribble icon indicating copy to clipboard operation
Scribble copied to clipboard

Callback when typist is finished

Open CarsonKompon opened this issue 2 years ago • 1 comments

Would be cool if you could do something like

typist = scribble_typist();
typist.function_on_finish(function(){
    show_debug_message("The textbox finished!");
    // Advance the next dialogue box automatically in 4 seconds
    alarm[0] = room_speed * 4;
});

A function_on_finish(func) would make automating things SUPER easy :)

CarsonKompon avatar Apr 28 '22 16:04 CarsonKompon

Was about to make a feature request for this, but saw this first! For my use case, I would use this for when to let a portrait know to switch out of its "talking" sprite. This is still pretty easily accomplished without a callback, but would be much easier with.

FaultyFunctions avatar May 31 '22 23:05 FaultyFunctions

https://github.com/JujuAdams/Scribble/commit/08c5c1c23faf0b2447ecafe248825ef04b930500

JujuAdams avatar Jan 22 '23 17:01 JujuAdams