Computer Science Canada Scrolling Text |
| Author: | endusto [ Sat Mar 05, 2005 1:47 pm ] | ||
| Post subject: | Scrolling Text | ||
|
|||
| Author: | [Gandalf] [ Sat Mar 05, 2005 2:45 pm ] |
| Post subject: | |
Very nice. But you could do it the easy way too - one letter at a time with a delay. |
|
| Author: | person [ Sat Mar 05, 2005 4:58 pm ] | ||
| Post subject: | |||
i simplified it a little
ur code was 11 lines...mine is 8 lines without the if statement |
|||
| Author: | Bacchus [ Sat Mar 05, 2005 7:34 pm ] | ||
| Post subject: | |||
even smaller, and could prbably be rediced moreso
|
|||
| Author: | endusto [ Sun Mar 06, 2005 2:20 pm ] | ||||||
| Post subject: | |||||||
Bacchus wrote: even smaller, and could prbably be rediced moreso
i made it 2 characters shorted by taking out the 0+ in 0+Font.Width
edit: i also made a horizontal scrolling text
|
|||||||
| Author: | Bacchus [ Sun Mar 06, 2005 6:42 pm ] |
| Post subject: | |
hm.. i dont kno y i had that zero in there, maybe starting point for text so u could start it in middle of screen etc |
|
| Author: | ssr [ Mon Mar 07, 2005 7:01 pm ] | ||||||||
| Post subject: | |||||||||
endusto wrote: Bacchus wrote: even smaller, and could prbably be rediced moreso
i made it 2 characters shorted by taking out the 0+ in 0+Font.Width
edit: i also made a horizontal scrolling text
A little different one |
|||||||||
| Author: | mike200015 [ Tue Mar 08, 2005 8:54 pm ] |
| Post subject: | |
wow that last ones really nice, not 2 diffucult but looks really good |
|
| Author: | Naveg [ Sun Mar 27, 2005 8:45 pm ] |
| Post subject: | |
theyre all pretty cool, i especially like the last one |
|
| Author: | dann_west [ Mon May 02, 2005 2:15 pm ] |
| Post subject: | Re: Scrolling Text |
Great! if its ok i may use that idea in one of my programs! |
|
| Author: | strike_hawk89 [ Mon May 09, 2005 9:33 am ] |
| Post subject: | |
how would u make the horizontal scrolling text to go to the next line? |
|
| Author: | Dylan-182 [ Thu May 12, 2005 2:08 am ] |
| Post subject: | |
hey sweet scrolling txt is actually what i was looking for just now lol |
|
| Author: | MysticVegeta [ Sat May 14, 2005 5:03 pm ] | ||
| Post subject: | |||
eh what the hell? I cant believe i wasted my time doing this ->
|
|||
| Author: | Lapsus Antepedis [ Tue May 17, 2005 7:21 am ] | ||
| Post subject: | |||
Add a randomized delay (within reasonable limits) and it looks like someone typing at you... (how pointless is that?)
|
|||
| Author: | gohan [ Tue May 17, 2005 10:19 am ] |
| Post subject: | |
hey MysticVegeta..yours was pretty cool man |
|
| Author: | strike_hawk89 [ Sat May 21, 2005 1:56 pm ] |
| Post subject: | |
how would u make the text go to the next line? If any of you have noticed, when the text goes past the window border the program doesnt stop. |
|
| Author: | Delos [ Sat May 21, 2005 3:14 pm ] |
| Post subject: | |
You'd need to do some length calculations. Since Font.() commands render the text as a picture, you can have it return the length of a particular string in a particular font setup. Use Font.Width() to find the length of the string you're using. Then, limit the allowed width per 'line' to the length of the screen. Figure out which letter that would be. Cut the string up into sections and recall the 'scroll' routine on the new text. |
|
| Author: | RaPsCaLLioN [ Sat May 21, 2005 7:46 pm ] | ||||
| Post subject: | |||||
and...
|
|||||