Scrolling text -- like movie credits
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Scrolling text -- like movie credits
Jacque.
Our current issues are that we are jerks.
Craig
Our current issues are that we are jerks.
Craig
Re: Scrolling text -- like movie credits
If you want a smooth "Star Wars" like credit scene, check Hermanns excellent stack here:
viewtopic.php?f=93&t=29018&p=161032&hil ... rs#p161032
viewtopic.php?f=93&t=29018&p=161032&hil ... rs#p161032
Re: Scrolling text -- like movie credits
Heh.

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Scrolling text -- like movie credits
Jacque.
But I don't handle messages well.
A Kludge and a half would be to create and load thin transparent horizontal fields at the bottom of a defined area that move upward at some nice rate, and reduce their textSize along the way. The height of each field has to diminish as well so that the spacing seems "right". They are deleted at the top. I am sure this would be smooth, and look exactly like a field with that dynamic attribute.
But it is a heavy kludge, and though simple to build, I am sticking for the moment on how to make a single field do it.
Craig
But I don't handle messages well.
A Kludge and a half would be to create and load thin transparent horizontal fields at the bottom of a defined area that move upward at some nice rate, and reduce their textSize along the way. The height of each field has to diminish as well so that the spacing seems "right". They are deleted at the top. I am sure this would be smooth, and look exactly like a field with that dynamic attribute.
But it is a heavy kludge, and though simple to build, I am sticking for the moment on how to make a single field do it.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
Correct, across can be uprichmond62 wrote: ↑Tue Nov 24, 2020 5:49 pmPresumably you mean vertically UP a blank card?vertically across a blank card

macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
Lol -- you guys are two funny. Anyway, on your first example, very clever but it locked up my computer. I had to force quit to get it to listen to merichmond62 wrote: ↑Wed Nov 25, 2020 5:45 pmThose bookshelves seem to get more and more %^&*()
the higher I climb on the ladder, but it is in fact an illusion as the tape measure
rarely lies.
AND, should you think that that has no relevance to the matter under consideration, think again.![]()

macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
Waaaaaaahhhhh
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
Please do. Bottom to top works fine. I don't need the 3d effect. Winner gets a free copy of the program (probably saving you, ohhh, maybe $2.99)dunbarx wrote: ↑Thu Nov 26, 2020 4:50 amJacque.
But I don't handle messages well.
A Kludge and a half would be to create and load thin transparent horizontal fields at the bottom of a defined area that move upward at some nice rate, and reduce their textSize along the way. The height of each field has to diminish as well so that the spacing seems "right". They are deleted at the top. I am sure this would be smooth, and look exactly like a field with that dynamic attribute.
But it is a heavy kludge, and though simple to build, I am sticking for the moment on how to make a single field do it.
Craig

macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Scrolling text -- like movie credits
Did you take a look at Hermann's stack?
Re: Scrolling text -- like movie credits
That's due to the repeat loops I mentioned. I bet if you watch the Activity Monitor you'll see that LC is using 100% CPU time and all other apps are frozen.marksmithhfx wrote: ↑
Lol -- you guys are two funny. Anyway, on your first example, very clever but it locked up my computer. I had to force quit to get it to listen to me![]()
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Scrolling text -- like movie credits
All you really need is a field containing the text, spaced and styled however you want. Leave some blank lines between each credit and enough blank lines at the bottom to push all the text out of view. Then (untested):Bottom to top works fine. I don't need the 3d effect.
Code: Select all
on startScroll
doScroll
end startScroll
on doScroll
set the scroll of fld "credits" to the scroll of fld "credits" + 2
send "doScroll" to me in 10 milliseconds
end doScroll
Code: Select all
on stopScroll
repeat for each line L in the pendingMessages
if L contains "doScroll" then cancel item 1 of L
end repeat
end stopScroll
Last edited by jacque on Fri Nov 27, 2020 11:00 pm, edited 1 time in total.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
No, I missed it the first time. Going to look at it now...
Cheers,
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Scrolling text -- like movie credits
I think Hermann's stack is gone now.
But here's another version based on use of browser widget, using css taken from here: https://codepen.io/yukulele/pen/KsCIi
It scrolls very smoothly.
Other browser tricks for alternate versions (including Yukulélé's) are here: https://css-tricks.com/snippets/css/sta ... rawl-text/
But here's another version based on use of browser widget, using css taken from here: https://codepen.io/yukulele/pen/KsCIi
It scrolls very smoothly.
Other browser tricks for alternate versions (including Yukulélé's) are here: https://css-tricks.com/snippets/css/sta ... rawl-text/
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Scrolling text -- like movie credits
(sic)Lol -- you guys are two funny.
- -
A rather subjective statement.

-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Scrolling text -- like movie credits
Impressive indeed!SparkOut wrote: ↑Fri Nov 27, 2020 10:52 amI think Hermann's stack is gone now.
But here's another version based on use of browser widget, using css taken from here: https://codepen.io/yukulele/pen/KsCIi
It scrolls very smoothly.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS