Best option for smooth text scrolling

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, kevinmiller, robinmiller, malte

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Best option for smooth text scrolling

Post by andyh1234 » Mon Jan 17, 2011 1:12 am

Hi Malte,

What would be the best option for a smooth even text scroll?

I can see in, out, bounce etc but cannot seem to find an explanation of each effect. In this particular case I simply want a ticker / marquee type effect so text starts off and scrolls round and round the bottom of the screen.

Are there any examples of such an effect using AE, or can you suggest which effect to use?

Thanks

Andy

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: Best option for smooth text scrolling

Post by malte » Mon Jan 17, 2011 12:40 pm

Hi andy,

I think I would go with an easeInOut effect.

Have a text field with your text in it. Make sure it has enough whitespace before and after the text, that the contents can scroll out of the visible canvas.

example script:

Code: Select all

on mouseUp
   aescroll the millisecs,12000 -- starttime,time needed to scroll all text
end mouseUp

on aeScroll pStart,pDuration
   lock screen   local tScroll,tElapsed
   put the millisecs-pStart into tElapsed
   put round(aeEaseIn(0,the formattedWidth of fld "myField",pDuration,tElapsed,2)) into tScroll
   set the hScroll of fld "myField" to tScroll
   unlock screen
   if tElapsed < pDuration then
      send "aeScroll" && pStart,pDuration to me in 30 millisecs
   end if
end aeScroll
Hth,

Malte

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Best option for smooth text scrolling

Post by andyh1234 » Mon Jan 17, 2011 1:41 pm

Thanks Malte!

Andy

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: Best option for smooth text scrolling

Post by malte » Mon Jan 17, 2011 11:12 pm

added a nicer version to AE 4. :-)

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Best option for smooth text scrolling

Post by andyh1234 » Mon Jan 17, 2011 11:19 pm

I look forward to it!

Andy

Post Reply

Return to “Animation Engine”