Make words appear letter by letter

Apr 23, 2009 at 10:02pm

Make words appear letter by letter

Hi there

Just started with max/jitter so I’m a newbie here Smile
For a project, I’m reading words from a .txt file with ‘coll’. I want to make the words appear letter by letter, so that it looks/feels like the text is written in real-time. Can someone help me on this one to get me started?

And subquestion for extra bonus points: how do I get some breaks between the lines in the text?

Thanx in advance!

#43512
Apr 23, 2009 at 10:19pm

You may be highly interested by the last patch posted (by Stefan Tiedje 3 days ago) on this thread :

http://www.cycling74.com/forums/index.php?t=msg&th=39173&start=0&rid=0&S=2f20ceb3f7c28ce8dea1d07ffad0bf20

#156115
Apr 23, 2009 at 11:11pm

you could try a piece of javascript…
editfontsize = 14;

var a;
var b = “”;

function anything(a){

this.a = arrayfromargs(arguments);

for(i=0;i

this.b+=this.a[i];
this.b+= ” “;
post(this.b);
post();

}
}

var counter = 0;
function bang(){// click bang to bang out the next letter

post(this.b.charAt(counter));
counter++;

}

#156116
Apr 24, 2009 at 9:49am

Great, thanx. Overlooked the thread by stefan tiedje i guess.

#156117

You must be logged in to reply to this topic.