Hello,
I'm trying to make a simple app for my first shot, but would appreciate some help or pointing in the right direction. It would have 2 lines of text scrolling across the desktop, one line coming from each side. When they intersect, or perhaps after, a image would appear.
How do you treat the scrolling text: as one image for each line, or is each letter an image?
thanks
alexsunny
looking for the starting point ?.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: looking for the starting point ?.
Frankly I would not treat TEXT as images: I'd treat TEXT as TEXT.How do you treat the scrolling text: as one image for each line, or is each letter an image?
-
- Attachments
-
- Scroller ball.livecode.zip
- Here's the stack.
- (1.05 KiB) Downloaded 124 times
Last edited by richmond62 on Sat Mar 20, 2021 4:25 pm, edited 1 time in total.
Re: looking for the starting point ?.
Try this lesson:
https://lessons.livecode.com/m/2592/l/ ... ext-banner
I think that is what you are trying to do.
Good Luck
https://lessons.livecode.com/m/2592/l/ ... ext-banner
I think that is what you are trying to do.
Good Luck
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: looking for the starting point ?.
Hi.
Not sure what you are up to.
When you say that two lines of text converge, do you mean that two separate fields overlay each other, and text flows in toward the center from the edges?
Craig
Not sure what you are up to.
When you say that two lines of text converge, do you mean that two separate fields overlay each other, and text flows in toward the center from the edges?
Craig
Last edited by dunbarx on Mon Mar 22, 2021 12:21 am, edited 1 time in total.
Re: looking for the starting point ?.
appreciate some help or pointing in the right direction.
I wonder if some ppl could benefit from it ....since they seem to have plenty of ressources to achieve such Covid19 goals already...together !
edit :
downloaded your script. (changed its refresh rate from 30 to 1... )
as for the sliding aspect, "bogs" talked about a sliding effect in this post but I havent digged into it yet.
it was not referring to TEXT but Images I would think, see here :
viewtopic.php?p=202558#p202558
As for a "CPU ressource" aspect : I would tend to think that putting a whole text into Var C19 and sliding the whole content from left to right would probably be much better than "redesigning" the field content each time due to an add/delete 1 value operation...
When you load a string, it stays in memory untill its useless or "no more room" and you would "just" have to manipulate it from R/L on the card display.
(with LC, dont know how yet...)
when you change (delete or add) even 1 single Char to it, the string is most likely enterely redesigned before redesplaying it, so I would tend to think that its a lot heavier process even it would takes few ms.
you can benchmark it to see the dif. latter on...
so maybe, converting a text to image and scrolling this image would be "easier" with LC. not sure.