Scrolling text -- like movie credits

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 653
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Scrolling text -- like movie credits

Post by marksmithhfx » Sun Nov 29, 2020 9:00 pm

jacque wrote:
Sun Nov 29, 2020 7:54 pm
Bernd's stuff is always beautiful and clever.
👍
macOS 10.15.7, Xcode 11.5, LC 9.6.1, iOS 13.6.1
Targets: Mac, iOS

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Scrolling text -- like movie credits

Post by dunbarx » Mon Nov 30, 2020 2:34 am

Did I miss something?

I do not see a solution to the original question, to have a smooth "Star Wars" type of scroll where each line reduces in textSize almost to invisibility as it scrolls toward the top and out to oblivion.

What have the other examples have to do with that? Or is the original query dead, and i just don't know it?

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8295
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Scrolling text -- like movie credits

Post by FourthWorld » Mon Nov 30, 2020 2:38 am

As far as I can tell, the original request was for just scrolling a list without scrollbars. The Star Wars effect was introduced into the discussion two posts later by Richmond.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Scrolling text -- like movie credits

Post by dunbarx » Mon Nov 30, 2020 3:41 am

Richard,

True. I guess I just got caught up with the Star Wars thing. Still working on it...

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5262
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Scrolling text -- like movie credits

Post by richmond62 » Mon Nov 30, 2020 8:28 am

The Star Wars effect was introduced into the discussion two posts later by Richmond.
Guilty as charged. 8)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Scrolling text -- like movie credits

Post by dunbarx » Mon Nov 30, 2020 4:43 pm

Richmond.

So glad you did.

But this is a challenge, or at least it is for me, to make LC do whatever we dream up. It seems as though it should be possible. I am having trouble though, since there is no "textHeight" property that can be applied to individual lines, only whole fields.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8295
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Scrolling text -- like movie credits

Post by FourthWorld » Mon Nov 30, 2020 5:18 pm

You could replace the text with the formattedText to make apparent (non-parapraph) lines independently adjustable.

But I think no matter how hard you try to do this by manipulating field contents, it won't likely perform as well as how other systems handle it.

The key is that it becomes a much harder problem attempting that with actual text, instead working with the image of the pre-rendered text.

If LC had a distort operation for images which would let us bring the top two corners together, that would help a lot.

If one had a critical need for this in LC it could be done quite nicely, by wrapping a compiled graphics library with an external or a Builder library.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Scrolling text -- like movie credits

Post by dunbarx » Mon Nov 30, 2020 5:30 pm

Richard.

I am sure that solutions out of the "normal" LC world (or my normal world) can do anything at all.

I just like to kludge stuff together.

But what would the formattedText do for me? I am not concerned with line wrapping (or not), only with the appearance and smoothness of a continuously reducing textSize/textHeight scrolling gadget.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8295
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Scrolling text -- like movie credits

Post by FourthWorld » Mon Nov 30, 2020 5:34 pm

FormattedText will convert soft wraps to hard wraps, simplifying per-line adjustments.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5785
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Scrolling text -- like movie credits

Post by jacque » Tue Dec 01, 2020 7:05 pm

Craig: you're right that textheight only applies to a whole field, but you could experiment with textshift to push the smaller lines down. I haven't tried it and it would probably be fiddly.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Scrolling text -- like movie credits

Post by dunbarx » Tue Dec 01, 2020 7:20 pm

Jacque.

Good idea. I had thought about setting the margins, but that property is for the field as a whole as well. But reading about the textShift, it seems that it can apply to chunks, and I can exploit that.

XXX

Craig

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 653
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Scrolling text -- like movie credits

Post by marksmithhfx » Mon Dec 21, 2020 2:26 pm

Silly question perhaps but has anyone else ever put an acknowledgements page into an app, and did you ask permission before including a persons name?
macOS 10.15.7, Xcode 11.5, LC 9.6.1, iOS 13.6.1
Targets: Mac, iOS

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5262
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Scrolling text -- like movie credits

Post by richmond62 » Mon Dec 21, 2020 2:38 pm

I have put a "thanks" page into my Devawriter and did NOT ask anyone's permission.
-
Thanks.jpg
-
Come to think of things, as my father is dead, asking his permission would have been a bit difficult.

You are welcome at any time to thank me in any of your work, and I will not object in the slightest. :D

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 653
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Scrolling text -- like movie credits

Post by marksmithhfx » Tue Dec 22, 2020 2:03 pm

richmond62 wrote:
Mon Dec 21, 2020 2:38 pm
You are welcome at any time to thank me in any of your work, and I will not object in the slightest. :D
Thank you Richmond. I appreciate being able to do that. Anyone else have an opinion on this, one way or the other?

Mark
macOS 10.15.7, Xcode 11.5, LC 9.6.1, iOS 13.6.1
Targets: Mac, iOS

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5785
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Scrolling text -- like movie credits

Post by jacque » Tue Dec 22, 2020 4:49 pm

I've put acknowledgments into an About dialog but those were requested by the author of the content. I haven't needed to thank anyone independent of that. However, my name was included in the LC acknowledgments some years ago and they didn't ask (there were dozens of us.)

On the other hand, a client saw my name there and thought there was some kind of collusion going on between me and LC and got pretty angry. I had to ask the team to remove my name in case someone else made the same wildly inaccurate assumption.

So I'd say if in doubt, ask. On the other, other hand if they'd asked me I'd have said "sure!", never dreaming it could be misconstrued that way.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”