I want to make a scrolling credits screen that can be found at the end of most Games campaigns, or movies. How would I go about doing this in Java? Im thinking it would be some sort of rectangular text box that is redrawn several times to make a vertical scrolling movement, but I'm not sure how to proceed. Any ideas and advice on doing this is welcome.
Java Programming: Making Credits
Collapse
X
-
Tags: None
-
-
I found a way to mimic a credit scroll by using a class to extend JComponent. I used a file reader to put the lines of text in the file into a string array and then overrides the paint component to paint the text in the array. I used a parallel array of integers to track the x and y positions of the text and stopped drawing the text after its y was lower than a certain number. And had the component repaint itself after a timer counted down.Comment
Comment