We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › visualizing a movie script
Page Index Toggle Pages: 1
visualizing a movie script (Read 240 times)
visualizing a movie script
Jan 22nd, 2009, 9:13pm
 
hi
im working on a project visualizing the script for the dark knight. i have the plain text file. ive worked with visualizing data before but only with numbers. can anyone help me. i want it to read and print each word and then make the work move around on its own after.

any help would be greatly appriceated ive been stuck for ages on this.
Re: visualizing a movie script
Reply #1 - Jan 23rd, 2009, 12:27am
 
I'm still a beginner so I don't know If it's any help, and I haven't even started working with file I/O.

But my guess would be that you need a class that holds string, xpos and ypos data. So you can create an array of objects that all contain a snippet of text and can be looped through to alter their position on the canvas.

Also the class would need a method to draw the text on it's position. This can be done with the text() function.

I'm still to "newb" to give a coded example, so I hope this helps.


Page Index Toggle Pages: 1