This is a module for the excellent multimedia platform Decker! In zine of millie issue 12 I used an effect in the intro where I had text typing out one character at a time with a pip sound, like text in an RPG or visual novel! People were asking how I did it, so I figured I should make the code into a reusable decker module so anyone else can use it if they want!

Download the .deck file and drag it into Decker to use the Font/DA Mover tool to move the module into your own deck!

Download

Download
typetext.deck 2 kB

Comments

Log in with itch.io to leave a comment.

love this module! thank you for making it!!

Thanks, I hope you're finding it useful!

i definitely am! but i've recently been having this bug(?) where the text is writing out twice? like it types out, wipes, and then immediately types out again. i think it's something i've done somewhere- i've got some looping music going on that might have something to do with it (<- person who knows nothing about coding).. if u have the time and would like to, it would be great to know why you think that might be happening! and if not, no worries--i'm sure i'll figure it out :) thank you again for making this module, it's super cool !!

Are you putting the call to the module in the "on view" bit of the card script? I've noticed there's times where it gets called twice for some reason when you transition to a card. I am not sure why or under what circumstances exactly, but I've been working around it by instead having it triggered by a button press (e.g. calling it in a "go to next card" button after the go[] function, rather than in the view function when the card loads) when I've needed it.

I think this is a decker quirk of how the view thing works rather than a thing specific to the typetext module, I've seen similar odd behaviour with other things I put in the view function.

You might be able to work around it in other ways (e.g. setting a flag that you check so it only plays the first time) but I'm not sure if that is causing more problems than it solves.

Ahh yes I was putting it in the view thing in the card! i did try to do it from a button press but i fucked it up somehow lol, thank u sm for the guidance i'm gonna try again :)