looking for the starting point ?.

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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
alexsunnyx123
Posts: 1
Joined: Sat Mar 20, 2021 12:49 pm

looking for the starting point ?.

Post by alexsunnyx123 » Sat Mar 20, 2021 12:50 pm

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

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

Re: looking for the starting point ?.

Post by richmond62 » Sat Mar 20, 2021 4:11 pm

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
Attachments
Scroller ball.livecode.zip
Here's the stack.
(1.05 KiB) Downloaded 121 times
Last edited by richmond62 on Sat Mar 20, 2021 4:25 pm, edited 1 time in total.

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm
Location: Fort Saskatchewan, AB Canada

Re: looking for the starting point ?.

Post by kdjanz » Sat Mar 20, 2021 4:16 pm

Try this lesson:
https://lessons.livecode.com/m/2592/l/ ... ext-banner

I think that is what you are trying to do.

Good Luck

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

Re: looking for the starting point ?.

Post by dunbarx » Sat Mar 20, 2021 5:00 pm

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
Last edited by dunbarx on Mon Mar 22, 2021 12:21 am, edited 1 time in total.

liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm
Location: down under

Re: looking for the starting point ?.

Post by liveme » Sun Mar 21, 2021 8:40 pm

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”