Page 1 of 1

looking for the starting point ?.

Posted: Sat Mar 20, 2021 12:50 pm
by alexsunnyx123
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

Re: looking for the starting point ?.

Posted: Sat Mar 20, 2021 4:11 pm
by richmond62
How do you treat the scrolling text: as one image for each line, or is each letter an image?
Frankly I would not treat TEXT as images: I'd treat TEXT as TEXT.
-
SShot 2021-03-20 at 17.21.04.png

Re: looking for the starting point ?.

Posted: Sat Mar 20, 2021 4:16 pm
by kdjanz
Try this lesson:
https://lessons.livecode.com/m/2592/l/ ... ext-banner

I think that is what you are trying to do.

Good Luck

Re: looking for the starting point ?.

Posted: Sat Mar 20, 2021 5:00 pm
by dunbarx
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

Re: looking for the starting point ?.

Posted: Sun Mar 21, 2021 8:40 pm
by liveme
appreciate some help or pointing in the right direction.
:D
I wonder if some ppl could benefit from it :)....since they seem to have plenty of ressources to achieve such Covid19 goals already...together !
:lol: :lol:



edit :

downloaded your script. (changed its refresh rate from 30 to 1... :P )

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.